Merge branch 'staging' into preprod

This commit is contained in:
Vins 2024-01-12 15:20:14 +01:00
commit dec8e5ee6e

View File

@ -53,7 +53,7 @@ export default class UserController extends ApiController {
const userHydrated = User.hydrate<User>(prismaUser, { strategy: "excludeAll" }); const userHydrated = User.hydrate<User>(prismaUser, { strategy: "excludeAll" });
if(!userHydrated.contact?.email || userHydrated.contact?.email === "") { if(!userHydrated.contact?.email || userHydrated.contact?.email === "") {
this.httpBadRequest(response, "Email not found"); this.httpUnauthorized(response, "Email not found");
return; return;
} }