changeset 339 | 766af1228b05 |
parent 319 | 78990a8a069b |
child 532 | 1190ea937f2d |
--- a/cms/app-client/mirage/serializers/datestat.js Sun Oct 16 22:23:31 2016 +0530 +++ b/cms/app-client/mirage/serializers/datestat.js Sun Oct 16 23:19:57 2016 +0530 @@ -4,6 +4,6 @@ export default JSONAPISerializer.extend({ serialize(response) { - return _(response.models).map((dateinfo) => { return [dateinfo.id, dateinfo.count];}).object().value(); + return {'datestats': _(response.models).map((dateinfo) => { return [dateinfo.id, dateinfo.count];}).object().value()}; } });