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) => ({
...getColumnPropsFromUIDT(c as any, base),
tableCreatePayLoad.columns = await Promise.all(
param.table.columns?.map(async (c) => ({
...(await getColumnPropsFromUIDT(c as any, base)),
cn: c.column_name,
column_name: c.column_name,
}));
}))
);
await sqlMgr.sqlOpPlus(base, 'tableCreate', {
...tableCreatePayLoad,
tn: param.table.table_name,

Loading…
Cancel
Save