Skip to content

Commit

Permalink
Fix incompatible SQLite query
Browse files Browse the repository at this point in the history
Signed-off-by: kim (grufwub) <[email protected]>
  • Loading branch information
NyaaaWhatsUpDoc committed Aug 30, 2021
1 parent a211708 commit e56d819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/bundb/relationship.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (r *relationshipDB) AcceptFollowRequest(ctx context.Context, originAccountI
if _, err := r.conn.
NewInsert().
Model(follow).
On("CONFLICT ON CONSTRAINT follows_account_id_target_account_id_key DO UPDATE set uri = ?", follow.URI).
On("CONFLICT (account_id,target_account_id) DO UPDATE set uri = ?", follow.URI).
Exec(ctx); err != nil {
return nil, r.conn.ProcessError(err)
}
Expand Down

0 comments on commit e56d819

Please sign in to comment.