chore: hard edelet userr
This commit is contained in:
@@ -315,11 +315,7 @@ export class UsersService {
|
||||
await firstValueFrom(this.mailServerService.users.deleteUser(user.wildduckUserId));
|
||||
}
|
||||
|
||||
user.deletedAt = new Date();
|
||||
user.isActive = false;
|
||||
user.emailEnabled = false;
|
||||
|
||||
await this.em.persistAndFlush(user);
|
||||
await this.em.nativeDelete(User, { id: user.id });
|
||||
|
||||
await this.quotaSyncService.scheduleUserQuotaSync(user.id, businessId, user.wildduckUserId);
|
||||
await this.quotaSyncService.scheduleBusinessQuotaSync(businessId, user.business.name);
|
||||
|
||||
Reference in New Issue
Block a user