mirror of
https://github.com/strapi/strapi.git
synced 2025-09-02 21:32:43 +00:00
Fix sort
This commit is contained in:
parent
511ca55461
commit
53849ff12c
@ -36,7 +36,7 @@ module.exports = {
|
||||
|
||||
if (_.has(filters, 'start')) result.skip(filters.start);
|
||||
if (_.has(filters, 'limit')) result.limit(filters.limit);
|
||||
if (_.has(filters, 'sort')) result.sort(filters.sort);
|
||||
if (!_.isEmpty(filters, 'sort')) result.sort(filters.sort);
|
||||
|
||||
return result;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user