mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +00:00
Update api/src/utils/generics/base-repository.ts
This commit is contained in:
parent
aaa24656d3
commit
34b42c005f
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user