Adding api id to list conferences API

This commit is contained in:
bhuvanvenkat-plivo 2020-04-27 13:03:52 +05:30
parent 324a8139b4
commit 182c72eaf8
2 changed files with 3 additions and 3 deletions

View file

@ -326,7 +326,7 @@ export class ConferenceInterface extends PlivoResourceInterface {
name: conference
}));
});
resolve(conferences);
resolve(response.body);
})
.catch(error => {
reject(error);

View file

@ -16,8 +16,8 @@ describe('Conference', function () {
it('should get all conferences', function () {
return client.conferences.list()
.then(function(conferences) {
assert.equal(conferences[0].name, 'My Conf Room' )
.then(function(response) {
assert.equal(response.conferences[0], 'My Conf Room' )
})
});