fix: mongo delete queries

This commit is contained in:
Karol Sójko
2023-08-30 18:23:08 +02:00
parent c64fa2f47c
commit ec35f46d45
2 changed files with 2 additions and 2 deletions
@@ -39,7 +39,7 @@ export class MongoDBRevisionRepository implements RevisionRepositoryInterface {
}
async removeByUserUuid(userUuid: Uuid): Promise<void> {
await this.mongoRepository.deleteMany({ where: { userUuid: userUuid.value } })
await this.mongoRepository.deleteMany({ userUuid: userUuid.value })
}
async removeOneByUuid(revisionUuid: Uuid, userUuid: Uuid): Promise<void> {
@@ -18,7 +18,7 @@ export class MongoDBItemRepository implements ItemRepositoryInterface {
) {}
async deleteByUserUuid(userUuid: string): Promise<void> {
await this.mongoRepository.deleteMany({ where: { userUuid } })
await this.mongoRepository.deleteMany({ userUuid })
}
async findAll(query: ItemQuery): Promise<Item[]> {