Use pread for signup page

This commit is contained in:
KernelDeimos 2024-04-25 19:44:06 -04:00
parent 736ebb6f28
commit ecec8bf75d

View File

@ -251,7 +251,7 @@ module.exports = eggspress(['/signup'], {
// todo if pseudo user, assign directly no need to do another DB lookup
const user_id = (pseudo_user === undefined) ? insert_res.insertId : pseudo_user.id;
const [user] = await db.read(
const [user] = await db.pread(
'SELECT * FROM `user` WHERE `id` = ? LIMIT 1',
[user_id]
);