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:
parent
23594d7373
commit
8cc3b8dd1e
11 changed files with 27 additions and 27 deletions
|
|
@ -116,10 +116,10 @@ describe('AnnouncementService', () => {
|
|||
|
||||
afterEach(async () => {
|
||||
await Promise.all([
|
||||
app.get(DI.metasRepository).delete({}),
|
||||
usersRepository.delete({}),
|
||||
announcementsRepository.delete({}),
|
||||
announcementReadsRepository.delete({}),
|
||||
app.get(DI.metasRepository).deleteAll(),
|
||||
usersRepository.deleteAll(),
|
||||
announcementsRepository.deleteAll(),
|
||||
announcementReadsRepository.deleteAll(),
|
||||
]);
|
||||
moderationLogService.log.mockReset();
|
||||
globalEventService.publishMainStream.mockReset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue