Browse Source

chore(nocodb): lint

pull/4810/head
Wing-Kam Wong 2 years ago
parent
commit
e9055349d1
  1. 2
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts
  2. 17
      packages/nocodb/src/lib/models/Model.ts

2
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -1468,7 +1468,7 @@ export default async (
rec[key] = JSON.stringify(tempArr);
}
break;
case UITypes.SingleLineText:
// Barcode data
if (value?.text) {

17
packages/nocodb/src/lib/models/Model.ts

@ -392,11 +392,16 @@ export default class Model implements TableType {
}
if (force) {
const leftOverColumns = await ncMeta.metaList2(null, null, MetaTable.COL_RELATIONS, {
condition: {
fk_related_model_id: this.id,
},
});
const leftOverColumns = await ncMeta.metaList2(
null,
null,
MetaTable.COL_RELATIONS,
{
condition: {
fk_related_model_id: this.id,
},
}
);
for (const col of leftOverColumns) {
await NocoCache.deepDel(
@ -410,7 +415,7 @@ export default class Model implements TableType {
fk_related_model_id: this.id,
});
}
await NocoCache.deepDel(
CacheScope.COLUMN,
`${CacheScope.COLUMN}:${this.id}`,

Loading…
Cancel
Save