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