Browse Source

chore(nocodb): lint

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
0a4a264f2f
  1. 8
      packages/nocodb/src/lib/models/Filter.ts
  2. 2
      packages/nocodb/src/lib/models/FormView.ts
  3. 9
      packages/nocodb/src/lib/models/GalleryView.ts
  4. 4
      packages/nocodb/src/lib/models/MapView.ts
  5. 2
      packages/nocodb/src/lib/services/views/galleryView.svc.ts

8
packages/nocodb/src/lib/models/Filter.ts

@ -272,7 +272,13 @@ export default class Filter implements FilterType {
await NocoCache.set(key, o);
}
// set meta
return await ncMeta.metaUpdate(null, null, MetaTable.FILTER_EXP, updateObj, id);
return await ncMeta.metaUpdate(
null,
null,
MetaTable.FILTER_EXP,
updateObj,
id
);
}
static async delete(id: string, ncMeta = Noco.ncMeta) {

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

@ -5,8 +5,8 @@ import NocoCache from '../cache/NocoCache';
import { extractProps } from '../meta/helpers/extractProps';
import FormViewColumn from './FormViewColumn';
import View from './View';
import type { MetaType } from 'nocodb-sdk';
import type { BoolType, FormType } from 'nocodb-sdk';
import { MetaType } from 'nocodb-sdk';
export default class FormView implements FormType {
show: BoolType;

9
packages/nocodb/src/lib/models/GalleryView.ts

@ -1,10 +1,15 @@
import { MetaType, UITypes } from 'nocodb-sdk';
import { UITypes } from 'nocodb-sdk';
import Noco from '../Noco';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import NocoCache from '../cache/NocoCache';
import { extractProps } from '../meta/helpers/extractProps';
import View from './View';
import type { BoolType, GalleryColumnType, GalleryType } from 'nocodb-sdk';
import type {
BoolType,
GalleryColumnType,
GalleryType,
MetaType,
} from 'nocodb-sdk';
export default class GalleryView implements GalleryType {
fk_view_id?: string;

4
packages/nocodb/src/lib/models/MapView.ts

@ -1,11 +1,11 @@
import Noco from '../Noco';
import { CacheGetType, CacheScope, MetaTable } from '../utils/globals';
import NocoCache from '../cache/NocoCache';
import { extractProps } from '../meta/helpers/extractProps';
import View from './View';
import MapViewColumn from './MapViewColumn';
import type { MetaType } from 'nocodb-sdk';
import type { MapType } from 'nocodb-sdk';
import { extractProps } from '../meta/helpers/extractProps';
import { MetaType } from 'nocodb-sdk';
export default class MapView implements MapType {
fk_view_id: string;

2
packages/nocodb/src/lib/services/views/galleryView.svc.ts

@ -2,7 +2,7 @@ import { ViewTypes } from 'nocodb-sdk';
import { T } from 'nc-help';
import { validatePayload } from '../../meta/api/helpers';
import { GalleryView, View } from '../../models';
import type { ViewCreateReqType, GalleryUpdateReqType } from 'nocodb-sdk';
import type { GalleryUpdateReqType, ViewCreateReqType } from 'nocodb-sdk';
export async function galleryViewGet(param: { galleryViewId: string }) {
return await GalleryView.get(param.galleryViewId);

Loading…
Cancel
Save