|
|
@ -173,8 +173,14 @@ export default class NcMetaMgrEE extends NcMetaMgr { |
|
|
|
if (queryParams.where) { |
|
|
|
if (queryParams.where) { |
|
|
|
where += where ? `~and(${queryParams.where})` : queryParams.where; |
|
|
|
where += where ? `~and(${queryParams.where})` : queryParams.where; |
|
|
|
} |
|
|
|
} |
|
|
|
if (queryParams.sort) { |
|
|
|
if (queryParams.sortList) { |
|
|
|
sort.push(...queryParams.sort.split(',')); |
|
|
|
sort.push( |
|
|
|
|
|
|
|
...(queryParams?.sortList |
|
|
|
|
|
|
|
?.map(sort => { |
|
|
|
|
|
|
|
return sort.field ? `${sort.order}${sort.field}` : ''; |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.filter(Boolean) || []) |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (req.query.sort) { |
|
|
|
if (req.query.sort) { |
|
|
|