fix: return proper error on login API (#386)

This commit is contained in:
ZaydSkaff
2025-06-03 09:47:24 +03:00
committed by GitHub
parent 12a9272b8b
commit 35ce13a67f
2 changed files with 16 additions and 14 deletions
@@ -12,6 +12,7 @@ export class RoleTypeEntity extends AbstractEntity<RoleTypeDto> {
nullable: false,
enum: Object.values(RoleType),
})
// why is this ts-type string not enum?
type: string;
@OneToMany(() => UserEntity, (inviteUser) => inviteUser.roleType, {
nullable: true,