diff --git a/api/src/utils/generics/base-repository.ts b/api/src/utils/generics/base-repository.ts index 6366e57c..94f4f67c 100644 --- a/api/src/utils/generics/base-repository.ts +++ b/api/src/utils/generics/base-repository.ts @@ -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);