fix TypeORM error "Empty criteria(s) are not allowed for the delete method."

- https://github.com/typeorm/typeorm/issues/11455
- https://github.com/typeorm/typeorm/pull/11459
This commit is contained in:
Hazelnoot 2025-10-02 22:33:48 -04:00
parent 23594d7373
commit 8cc3b8dd1e
11 changed files with 27 additions and 27 deletions

View file

@ -166,10 +166,10 @@ describe('AbuseReportNotificationService', () => {
emailService.sendEmail.mockClear();
webhookService.enqueueSystemWebhook.mockClear();
await usersRepository.delete({});
await userProfilesRepository.delete({});
await systemWebhooksRepository.delete({});
await abuseReportNotificationRecipientRepository.delete({});
await usersRepository.deleteAll();
await userProfilesRepository.deleteAll();
await systemWebhooksRepository.deleteAll();
await abuseReportNotificationRecipientRepository.deleteAll();
});
// --------------------------------------------------------------------------------------