Skip to content

Commit c3ad30a

Browse files
authored
Merge pull request #5894 from Countly/ar2rsawseen/master
Fixed logging errors from populator
2 parents c23b57b + 60563a4 commit c3ad30a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

api/utils/requestProcessor.js

100755100644
+3-2
Original file line numberDiff line numberDiff line change
@@ -3193,7 +3193,7 @@ const processBulkRequest = (i, requests, params) => {
31933193
const appKey = params.qstring.app_key;
31943194
if (i === requests.length) {
31953195
common.unblockResponses(params);
3196-
if (params.qstring.safe_api_response || plugins.getConfig("api", params.app && params.app.plugins, true).safe && !params.res.finished) {
3196+
if ((params.qstring.safe_api_response || plugins.getConfig("api", params.app && params.app.plugins, true).safe) && !params.res.finished) {
31973197
common.returnMessage(params, 200, 'Success');
31983198
}
31993199
return;
@@ -3220,7 +3220,8 @@ const processBulkRequest = (i, requests, params) => {
32203220
'req': params.req,
32213221
'promises': [],
32223222
'bulk': true,
3223-
'populator': params.qstring.populator
3223+
'populator': params.qstring.populator,
3224+
'blockResponses': true
32243225
};
32253226

32263227
tmpParams.qstring.app_key = (requests[i].app_key || appKey) + "";

0 commit comments

Comments
 (0)