diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-01-29 00:26:34 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-01-29 00:26:56 +0100 |
commit | 5e43c931dc46c3b6772326169dbd0c3fd425644f (patch) | |
tree | 4de5f1afdd876b1028b470546efd96be482308bb | |
parent | 6922b543af89e4c09dc3a26cc7d4235c89d24078 (diff) | |
download | server-5e43c931dc46c3b6772326169dbd0c3fd425644f.tar.gz |
Fix notification setting on profile page when mail is not verified.
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -433,7 +433,7 @@ const SQL_SELECT_USER_DYNAMIC = SQL("select * from user_dynamic_view where user_ const SQL_SELECT_USER_ID = SQL("SELECT user_id FROM users WHERE name=?").pluck() const SQL_SELECT_USER_BY_SEARCH = SQL("select name, atime from users left join user_last_seen using(user_id) where name like ? order by name") -const SQL_SELECT_USER_NOTIFY = SQL("SELECT notify and is_verified FROM users WHERE user_id=?").pluck() +const SQL_SELECT_USER_NOTIFY = SQL("SELECT notify FROM users WHERE user_id=?").pluck() const SQL_SELECT_USER_VERIFIED = SQL("SELECT is_verified FROM users WHERE user_id=?").pluck() const SQL_UPDATE_USER_NOTIFY = SQL("UPDATE users SET notify=? WHERE user_id=?") const SQL_UPDATE_USER_NAME = SQL("UPDATE users SET name=? WHERE user_id=?") |