Browse Source

chore(api): linting

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4445/head
Pranav C 2 years ago
parent
commit
bd504c8ebd
  1. 2
      packages/nc-gui/assets/style.scss
  2. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts
  3. 2
      packages/nocodb/src/lib/models/Model.ts

2
packages/nc-gui/assets/style.scss

@ -220,7 +220,7 @@ a {
} }
&:hover::after { &:hover::after {
@apply transform scale-110 ; @apply transform scale-110;
} }
} }

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/BaseModelSqlv2.ts

@ -9,7 +9,7 @@ import RollupColumn from '../../../../models/RollupColumn';
import LookupColumn from '../../../../models/LookupColumn'; import LookupColumn from '../../../../models/LookupColumn';
import DataLoader from 'dataloader'; import DataLoader from 'dataloader';
import Column from '../../../../models/Column'; import Column from '../../../../models/Column';
import { XcFilter, XcFilterWithAlias } from '../BaseModel' import { XcFilter, XcFilterWithAlias } from '../BaseModel';
import conditionV2 from './conditionV2'; import conditionV2 from './conditionV2';
import Filter from '../../../../models/Filter'; import Filter from '../../../../models/Filter';
import sortV2 from './sortV2'; import sortV2 from './sortV2';

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

@ -248,7 +248,6 @@ export default class Model implements TableType {
)); ));
if (!modelData) { if (!modelData) {
modelData = await ncMeta.metaGet2(null, null, MetaTable.MODELS, k); modelData = await ncMeta.metaGet2(null, null, MetaTable.MODELS, k);
await NocoCache.set(`${CacheScope.MODEL}:${modelData.id}`, modelData);
// if ( // if (
// this.baseModels?.[modelData.base_id]?.[modelData.db_alias]?.[ // this.baseModels?.[modelData.base_id]?.[modelData.db_alias]?.[
// modelData.title // modelData.title
@ -269,6 +268,7 @@ export default class Model implements TableType {
// } // }
} }
if (modelData) { if (modelData) {
await NocoCache.set(`${CacheScope.MODEL}:${modelData.id}`, modelData);
return new Model(modelData); return new Model(modelData);
} }
return null; return null;

Loading…
Cancel
Save