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

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

View File

@ -193,7 +193,7 @@ export abstract class BaseRepository<
const criteria = query.getFilter();
const updates = query.getUpdate();
if (!updates) {
throw new Error('Unable to run run updateMany pre hook');
throw new Error('Unable to execute updateMany() pre-hook');
}
await repository.preUpdateMany(query, criteria, updates);
repository.emitter.emit(