Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f70661

Browse files
authored
Merge pull request cosmicjs#7 from manimalik/master
Added total property in getObjectType response
2 parents f24679a + ba629fc commit 2f70661

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ module.exports = {
7171
cosmic.objects.all = objects;
7272
cosmic.object = _.map(objects, keyMetafields);
7373
cosmic.object = _.keyBy(cosmic.object, "slug");
74+
cosmic.total = response.total;
7475
return callback(false, cosmic);
7576
});
7677
},

0 commit comments

Comments
 (0)