summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-05-02 13:41:38 +0300
committereug-vs <eug-vs@keemail.me>2021-05-02 13:41:38 +0300
commitb56d5eec1189d8b60a7c51eeec6d7526e562bf7e (patch)
treef3f2a000655b590bf1973a0e5123c1270c892ed2
parent092d6b55c05e9ec653b3e51cdecd7274c974b6fb (diff)
downloadcommercel-api-b56d5eec1189d8b60a7c51eeec6d7526e562bf7e.tar.gz
fix: correct query
-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