summaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-29 00:26:34 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-29 00:26:56 +0100
commit5e43c931dc46c3b6772326169dbd0c3fd425644f (patch)
tree4de5f1afdd876b1028b470546efd96be482308bb /server.js
parent6922b543af89e4c09dc3a26cc7d4235c89d24078 (diff)
downloadserver-5e43c931dc46c3b6772326169dbd0c3fd425644f.tar.gz
Fix notification setting on profile page when mail is not verified.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index bfa52f7..e01b477 100644
--- a/server.js
+++ b/server.js
@@ -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=?")