Fix order of arguments
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ae55224d11
commit
a38d2147bf
|
@ -96,7 +96,7 @@ VALUES ($1, $2, $3, $4, DEFAULT) RETURNING "id"`, topic, secret, urlSecret, 60*6
|
|||
log.Printf("WebSub Hub URL found for topic=%q hub=%q callback=%q\n", topic, hubURL, callbackURL)
|
||||
|
||||
if err == nil && hubURL != "" {
|
||||
_, err := db.Exec(`UPDATE subscriptions SET hub = $1, callback = $2 WHERE id = $3`, subscriptionID, hubURL, callbackURL)
|
||||
_, err := db.Exec(`UPDATE subscriptions SET hub = $1, callback = $2 WHERE id = $3`, hubURL, callbackURL, subscriptionID)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("save hub and callback: %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user