From 1cc69016a4032786d3aef7fb4a6740b7bb8e79ca Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Wed, 22 Apr 2020 11:56:27 +0200 Subject: [PATCH] =?UTF-8?q?feat(apis):=20switch=20user=20for=20auto=20requ?= =?UTF-8?q?est=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/apis/services/apis.service.js b/modules/apis/services/apis.service.js index a033e62f4..4efb4188b 100644 --- a/modules/apis/services/apis.service.js +++ b/modules/apis/services/apis.service.js @@ -196,9 +196,9 @@ exports.workerAuto = async (api, body, user) => { } // historize - await HistorysService.historize(_.clone({ request, result }), start, api, user); + await HistorysService.historize(_.clone({ request, result }), start, api, 'auto request'); } catch (err) { - await HistorysService.historize(err, start, api, user); + await HistorysService.historize(err, start, api, 'auto request'); return Promise.resolve({ err, api }); } };