summaryrefslogtreecommitdiff
path: root/internal/db/bundb/relationship.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-08-26 22:06:34 +0200
committerLibravatar GitHub <noreply@github.com>2021-08-26 22:06:34 +0200
commit30f688dbe283106162de80ad1759322794ecbf03 (patch)
treeb84634c3e896180ebd9fda3f3425e718e024f603 /internal/db/bundb/relationship.go
parentfix broken db queries in auth (#160) (diff)
downloadgotosocial-30f688dbe283106162de80ad1759322794ecbf03.tar.xz
some more little fixes for all to enjoy (#161)
Diffstat (limited to 'internal/db/bundb/relationship.go')
-rw-r--r--internal/db/bundb/relationship.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/relationship.go b/internal/db/bundb/relationship.go
index ed144669e..95426f122 100644
--- a/internal/db/bundb/relationship.go
+++ b/internal/db/bundb/relationship.go
@@ -237,7 +237,7 @@ func (r *relationshipDB) AcceptFollowRequest(ctx context.Context, originAccountI
if _, err := r.conn.
NewInsert().
Model(follow).
- On("CONFLICT CONSTRAINT follows_account_id_target_account_id_key DO UPDATE set uri = ?", follow.URI).
+ On("CONFLICT ON CONSTRAINT follows_account_id_target_account_id_key DO UPDATE set uri = ?", follow.URI).
Exec(ctx); err != nil {
return nil, processErrorResponse(err)
}