mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-03-12 20:54:30 -05:00
Fix notification query
This commit is contained in:
parent
a2bed259dd
commit
2a359fea12
|
@ -58,7 +58,7 @@ const upsertRoomUnreadNotificationCountsSQL = `INSERT INTO syncapi_notification_
|
||||||
(user_id, room_id, notification_count, highlight_count)
|
(user_id, room_id, notification_count, highlight_count)
|
||||||
VALUES ($1, $2, $3, $4)
|
VALUES ($1, $2, $3, $4)
|
||||||
ON CONFLICT (user_id, room_id)
|
ON CONFLICT (user_id, room_id)
|
||||||
DO UPDATE SET notification_count = $3, highlight_count = $4
|
DO UPDATE SET id = nextval('syncapi_notification_data_id_seq'), notification_count = $3, highlight_count = $4
|
||||||
RETURNING id`
|
RETURNING id`
|
||||||
|
|
||||||
const selectUserUnreadNotificationCountsSQL = `SELECT
|
const selectUserUnreadNotificationCountsSQL = `SELECT
|
||||||
|
|
Loading…
Reference in a new issue