Skip to content

Commit 97a93d9

Browse files
fix for uploadProfile where client_id should be in the body
1 parent 0aa452c commit 97a93d9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

services/dialog/v1.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ Dialog.prototype.updateProfile = function(params, callback) {
6565
url: '/v1/dialogs/{dialog_id}/profile',
6666
method: 'PUT',
6767
json: true,
68-
body: pick(params, ['name_values']),
69-
qs: pick(params, ['client_id']),
68+
body: pick(params, ['name_values','client_id']),
7069
path: params
7170
},
7271
requiredParams: ['dialog_id', 'name_values'],

test/test.dialog.v1.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ describe('dialog', function() {
8484
});
8585

8686
it('should generate a valid payload', function() {
87-
var clientQuery = qs.stringify(pick(payload,['client_id']));
8887

8988
var req = dialog.updateProfile(params, noop);
90-
assert.equal(req.uri.href, service.url + paths.profile + '?' + clientQuery);
89+
assert.equal(req.uri.href, service.url + paths.profile);
9190
assert.equal(req.method, 'PUT');
9291
});
9392
});

0 commit comments

Comments
 (0)