fixed bug in greuge

This commit is contained in:
gerard 2018-05-24 16:03:16 +02:00
parent fe27f0e44f
commit 7b82c10a1b
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module.exports = Self => {
},
skip: (params.page - 1) * parseInt(params.size),
limit: parseInt(params.size),
order: `${params.order}, id ASC` || 'shipped DESC',
order: (params.order || 'shipped DESC') + ', id ASC',
include: {
relation: "greugeType",
scope: {