mirror of
https://github.com/hexastack/hexabot
synced 2025-05-07 06:14:48 +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 criteria = query.getFilter();
|
||||||
const updates = query.getUpdate();
|
const updates = query.getUpdate();
|
||||||
if (!updates) {
|
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);
|
await repository.preUpdateMany(query, criteria, updates);
|
||||||
repository.emitter.emit(
|
repository.emitter.emit(
|
||||||
|
Loading…
Reference in New Issue
Block a user