Remove USER role

This commit is contained in:
faris Aljohari
2024-05-18 23:00:22 +03:00
parent 1bc8fee061
commit 6415d78992
23 changed files with 107 additions and 136 deletions

View File

@ -62,7 +62,7 @@ export class UserEntity extends AbstractEntity<UserDto> {
@OneToMany(() => UserRoleEntity, (role) => role.user, {
nullable: true,
})
role: UserRoleEntity[];
roles: UserRoleEntity[];
constructor(partial: Partial<UserEntity>) {
super();
Object.assign(this, partial);