diff options
author | eug-vs <eug-vs@keemail.me> | 2021-05-02 13:41:38 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-05-02 13:41:38 +0300 |
commit | b56d5eec1189d8b60a7c51eeec6d7526e562bf7e (patch) | |
tree | f3f2a000655b590bf1973a0e5123c1270c892ed2 | |
parent | 092d6b55c05e9ec653b3e51cdecd7274c974b6fb (diff) | |
download | commercel-api-b56d5eec1189d8b60a7c51eeec6d7526e562bf7e.tar.gz |
fix: correct query
-rw-r--r-- | src/services/uploads.service.ts | 2 |
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 |