1
0
Fork 0
mirror of https://github.com/mCaptcha/mCaptcha.git synced 2025-04-02 14:43:29 +03:00
mCaptcha/db/db-sqlx-postgres/src/mark_notification_read.sql
2022-05-26 19:32:16 +05:30

14 lines
271 B
SQL

-- mark a notification as read
UPDATE mcaptcha_notifications
SET read = TRUE
WHERE
mcaptcha_notifications.id = $1
AND
mcaptcha_notifications.rx = (
SELECT
id
FROM
mcaptcha_users
WHERE
name = $2
);