diff --git a/backend/src/controllers/authController.ts b/backend/src/controllers/authController.ts index 9e8efa7..d233a7d 100644 --- a/backend/src/controllers/authController.ts +++ b/backend/src/controllers/authController.ts @@ -198,7 +198,7 @@ export const register = async (req: Request, res: Response) => { // Get created user const newUser = await db.get( - 'SELECT id, email, name, role, phone, department FROM users WHERE id = ?', + 'SELECT id, email, name, role FROM users WHERE id = ?', [result.lastID] );