summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/services/uploads.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/uploads.service.ts b/src/services/uploads.service.ts
index 90737e5..9a61a50 100644
--- a/src/services/uploads.service.ts
+++ b/src/services/uploads.service.ts
@@ -85,7 +85,7 @@ const parseTransfersBill = async (context: HookContext): Promise<HookContext> =>
const contractorId = await context.app
.service('contractors')
- .find({ query: { vatId } })
+ .find({ vatId })
.then((results: any[]) => {
if (results.length) return results[0];
return context.app