Add integration tests for limit/offset #33

Merged
joeybaker merged 3 commits from add-limit-offset-tests into master 2016-11-02 02:09:45 +00:00
Showing only changes of commit a335471f02 - Show all commits

View File

@ -165,6 +165,8 @@ export const list = ({ server, model, prefix = '/', config }) => {
where, include, limit, offset, order, where, include, limit, offset, order,
}); });
if (!list.length) return void reply(notFound('Nothing found.'));
reply(list.map((item) => item.toJSON())); reply(list.map((item) => item.toJSON()));
}, },