Skip to content

Commit fa12054

Browse files
SER-2127 request body was sent wrongly
1 parent 92eb7e5 commit fa12054

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/scripts/member-managament/delete_old_members.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Promise.all([pluginManager.dbConnection("countly")]).spread(function(countlyDb)
4444
Url: SERVER_URL + "/i/users/delete",
4545
body: {
4646
api_key: API_KEY,
47-
args: JSON.stringify({user_ids: [(data._id + "")]})
47+
args: {user_ids: [data._id + ""]}
4848
}
4949
}, function(data) {
5050
if (data.err) {
@@ -99,8 +99,7 @@ function sendRequest(params, callback) {
9999
const options = {
100100
uri: url.href,
101101
method: params.requestType,
102-
json: true,
103-
body: body,
102+
json: JSON.stringify(body),
104103
strictSSL: false
105104
};
106105

0 commit comments

Comments
 (0)