Update base.js

Change: all list function will print the meta object.
This commit is contained in:
Narayana Shanubhogh 2019-11-13 12:32:01 +05:30 committed by GitHub
parent cb1b25774b
commit bcf023aff6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,7 +113,7 @@ export class PlivoResourceInterface {
client('GET', action, params)
.then(response => {
let objects = [];
Object.defineProperty(objects, 'meta', { value: response.body.meta });
Object.defineProperty(objects, 'meta', { value: response.body.meta, enumerable: true });
response.body.objects.forEach(item => {
objects.push(new Klass(client, item));
});