Fixed email empty
This commit is contained in:
parent
c6335996a6
commit
2810a37bd4
@ -53,7 +53,7 @@ export default class UserController extends ApiController {
|
||||
const userHydrated = User.hydrate<User>(prismaUser, { strategy: "excludeAll" });
|
||||
|
||||
if(!userHydrated.contact?.email || userHydrated.contact?.email === "") {
|
||||
this.httpBadRequest(response, "Email not found");
|
||||
this.httpUnauthorized(response, "Email not found");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user