Update api/src/utils/generics/base-repository.ts

This commit is contained in:
Med Marrouchi 2024-12-30 08:58:47 +01:00 committed by GitHub
parent 34b42c005f
commit ca3a0f364f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -490,7 +490,7 @@ export abstract class BaseRepository<
const queryUpdates = query.getUpdate();
if (!queryUpdates) {
throw new Error('updateOne() query updates are not undefined');
throw new Error(' Unable to execute updateOne() - No updates');
}
await this.preUpdateValidate(filterCriteria, queryUpdates);