From 61559680f19fb56b5d251f2508c77b6fbfaa9927 Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Tue, 17 Mar 2020 18:22:08 +0100 Subject: [PATCH] =?UTF-8?q?feat(apis):=20rework=20result=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/apis/services/apis.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/apis/services/apis.service.js b/modules/apis/services/apis.service.js index 7cd5d91ec..1dbd4c418 100644 --- a/modules/apis/services/apis.service.js +++ b/modules/apis/services/apis.service.js @@ -116,7 +116,7 @@ exports.load = async (api) => { result.prepare = montaineSave.prepare(result.result, start); result.mongo = montaineSave.save(result.prepare, start); result.result = result.mongo; - await ApisRepository.import(_.camelCase(api.title), result.result); + result.result = await ApisRepository.import(_.camelCase(api.title), result.result); } const history = await HistoryRepository.create(montaineRequest.setScrapHistory(result.request, api, start));