chore: hard edelet userr

This commit is contained in:
mahyargdz
2025-09-04 11:33:21 +03:30
parent 7976f39739
commit 7c311a1f4c
+1 -5
View File
@@ -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);