mirror of
https://github.com/HeyPuter/puter.git
synced 2026-01-26 06:58:56 -06:00
Use pread for signup page
This commit is contained in:
@@ -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]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user