From b56d5eec1189d8b60a7c51eeec6d7526e562bf7e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 2 May 2021 13:41:38 +0300 Subject: fix: correct query --- src/services/uploads.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 => const contractorId = await context.app .service('contractors') - .find({ query: { vatId } }) + .find({ vatId }) .then((results: any[]) => { if (results.length) return results[0]; return context.app -- cgit v1.2.3