Fix inserting reactions
This commit is contained in:
parent
1a14311ae6
commit
fd154bd633
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ const (
|
|||
insertReaction = `
|
||||
INSERT INTO reaction (conv_id, conv_receiver, msg_id, sender, reaction, mxid)
|
||||
VALUES ($1, $2, $3, $4, $5, $6)
|
||||
ON CONFLICT (conv_id, conv_receiver, msg_id, sender)
|
||||
ON CONFLICT (conv_receiver, msg_id, sender)
|
||||
DO UPDATE SET reaction=excluded.reaction, mxid=excluded.mxid
|
||||
`
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue