need to query for the sub here

This commit is contained in:
Ted Unangst 2023-03-02 23:34:54 -05:00
parent e965f7090f
commit ba9d745efa
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ func main() {
fmt.Printf("user not found") fmt.Printf("user not found")
return return
} }
row := db.QueryRow("select honkerid from honkers where xid = ? and userid = ?", args[2], user.ID) row := db.QueryRow("select honkerid from honkers where xid = ? and userid = ? and flavor in ('sub')", args[2], user.ID)
var honkerid int64 var honkerid int64
err = row.Scan(&honkerid) err = row.Scan(&honkerid)
if err != nil { if err != nil {