Skip to content

Commit

Permalink
feat(apis): switch user for auto request ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Apr 22, 2020
1 parent 0284a98 commit 1cc6901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/apis/services/apis.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
};
Expand Down

0 comments on commit 1cc6901

Please sign in to comment.