Add tests for authController.registerUser and authController.loginUser

This commit is contained in:
Alex Holliday committed 2024-10-10 11:42:33 +08:00
1 parent 485e520dcb
commit a46f5ae3ab
2 files changed
+155 -1

No files matched your search

+1 -1
View File
@@ -141,7 +141,7 @@ const loginUser = async (req, res, next) => {
delete userWithoutPassword.avatarImage;
// Happy path, return token
const appSettings = req.settingsService.getSettings();
const appSettings = await req.settingsService.getSettings();
const token = issueToken(userWithoutPassword, appSettings);
// reset avatar image
userWithoutPassword.avatarImage = user.avatarImage;