mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
Remove onDelete and onUpdate properties from entity relationships
This commit is contained in:
@ -61,8 +61,6 @@ export class UserEntity extends AbstractEntity<UserDto> {
|
||||
|
||||
@OneToMany(() => UserRoleEntity, (role) => role.user, {
|
||||
nullable: true,
|
||||
onDelete: 'CASCADE',
|
||||
onUpdate: 'CASCADE',
|
||||
})
|
||||
role: UserRoleEntity[];
|
||||
constructor(partial: Partial<UserEntity>) {
|
||||
|
Reference in New Issue
Block a user