Browse Source

fix: create rollup(Links) based on uidt

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5848/head
Pranav C 2 years ago
parent
commit
a6308ef3fa
  1. 20
      packages/nocodb/src/services/columns.service.ts

20
packages/nocodb/src/services/columns.service.ts

@ -1832,15 +1832,17 @@ export class ColumnsService {
virtual: (param.column as LinkToAnotherColumnReqType).virtual, virtual: (param.column as LinkToAnotherColumnReqType).virtual,
}); });
await populateRollupForLTAR({ if (isLinks) {
column: col1, await populateRollupForLTAR({
// columnMeta: param.column['meta'], column: col1,
}); // columnMeta: param.column['meta'],
await populateRollupForLTAR({ });
column: col2, await populateRollupForLTAR({
columnMeta: param.column['meta'], column: col2,
alias: param.column.title, columnMeta: param.column['meta'],
}); alias: param.column.title,
});
}
// todo: create index for virtual relations as well // todo: create index for virtual relations as well
// create index for foreign key in pg // create index for foreign key in pg

Loading…
Cancel
Save