Browse Source

fix: metaList missing orderBy (#2169)

Signed-off-by: 诗人的咸鱼 <willnewii@163.com>
feat/0523-export-schema
诗人的咸鱼 3 years ago committed by Raju Udava
parent
commit
036ba5d003
  1. 5
      packages/nocodb/src/lib/noco/meta/NcMetaIOImpl.ts

5
packages/nocodb/src/lib/noco/meta/NcMetaIOImpl.ts

@ -307,6 +307,11 @@ export default class NcMetaIOImpl extends NcMetaIO {
(query as any).condition(args.xcCondition);
}
if (args?.orderBy) {
for (const [col, dir] of Object.entries(args.orderBy)) {
query.orderBy(col, dir);
}
}
if (args?.fields?.length) {
query.select(...args.fields);
}

Loading…
Cancel
Save