build prod swagger types

This commit is contained in:
unurled 2025-02-14 17:14:07 +01:00
parent c09518de53
commit b73477e082
Signed by: unurled
GPG key ID: EFC5F5E709B47DDD
7 changed files with 68 additions and 51 deletions

View file

@ -11,16 +11,12 @@ export class UsersService {
where: {
id,
},
include: {
email_verifications: true,
},
});
if (!user) throw new NotFoundException('User not found');
return new UserEntity({
id: user.id,
username: user.username,
email: user.email,
verified: !user.email_verifications,
password: user.password,
tokenId: user.token_id,
createdAt: user.created_at,
@ -33,16 +29,12 @@ export class UsersService {
where: {
email,
},
include: {
email_verifications: true,
},
});
if (!user) throw new NotFoundException('User not found');
return new UserEntity({
id: user.id,
username: user.username,
email: user.email,
verified: !user.email_verifications,
password: user.password,
tokenId: user.token_id,
createdAt: user.created_at,