From fd154bd6339d3df4bb8522afb91a89565fb9f839 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 21 Aug 2023 09:54:36 +0300 Subject: [PATCH] Fix inserting reactions --- database/reaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/reaction.go b/database/reaction.go index d3b5f41..dbf0a81 100644 --- a/database/reaction.go +++ b/database/reaction.go @@ -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 ` )