mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Update api/src/utils/generics/base-repository.ts
This commit is contained in:
parent
7e98fdc3bb
commit
62e18ab591
@ -490,7 +490,7 @@ export abstract class BaseRepository<
|
|||||||
const queryUpdates = query.getUpdate();
|
const queryUpdates = query.getUpdate();
|
||||||
|
|
||||||
if (!queryUpdates) {
|
if (!queryUpdates) {
|
||||||
throw new Error(' Unable to execute updateOne() - No updates');
|
throw new Error('Unable to execute updateOne() - No updates');
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.preUpdateValidate(filterCriteria, queryUpdates);
|
await this.preUpdateValidate(filterCriteria, queryUpdates);
|
||||||
|
Loading…
Reference in New Issue
Block a user