chore: Remove unused uses of uuid_user in save_account.js

The variable doesn't exist, and we never use it after this. Seems like a
copy-paste error.

Solves these eslint errors:

/puter/packages/backend/src/routers/save_account.js
  90:9   error  'uuid_user' is not defined  no-undef
  91:9   error  'uuid_user' is not defined  no-undef
  91:21  error  'uuid_user' is not defined  no-undef
This commit is contained in:
Sam Atkins 2024-05-01 10:38:33 +01:00
parent 9b3dd6b753
commit 01ab6b88ea

View File

@ -85,11 +85,6 @@ router.post('/save_account', auth, express.json(), async (req, res, next)=>{
// get pseudo user, if exists
let pseudo_user = await db.read(`SELECT * FROM user WHERE email = ? AND password IS NULL`, [req.body.email]);
pseudo_user = pseudo_user[0];
// get uuid user, if exists
if(req.body.uuid){
uuid_user = await db.read(`SELECT * FROM user WHERE uuid = ? LIMIT 1`, [req.body.uuid]);
uuid_user = uuid_user[0];
}
// send_confirmation_code
req.body.send_confirmation_code = req.body.send_confirmation_code ?? true;