Browse Source

fix(nocodb): add missing promise.all

pull/5262/head
Wing-Kam Wong 2 years ago
parent
commit
6a849af88b
  1. 8
      packages/nocodb/src/lib/services/table.svc.ts

8
packages/nocodb/src/lib/services/table.svc.ts

@ -410,11 +410,13 @@ export async function tableCreate(param: {
} }
} }
tableCreatePayLoad.columns = param.table.columns?.map((c) => ({ tableCreatePayLoad.columns = await Promise.all(
...getColumnPropsFromUIDT(c as any, base), param.table.columns?.map(async (c) => ({
...(await getColumnPropsFromUIDT(c as any, base)),
cn: c.column_name, cn: c.column_name,
column_name: c.column_name, column_name: c.column_name,
})); }))
);
await sqlMgr.sqlOpPlus(base, 'tableCreate', { await sqlMgr.sqlOpPlus(base, 'tableCreate', {
...tableCreatePayLoad, ...tableCreatePayLoad,
tn: param.table.table_name, tn: param.table.table_name,

Loading…
Cancel
Save