mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 09:27:53 +00:00
fix: return proper error on login API (#386)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user