Browse Source

refactor(nocodb): lint

pull/5642/head
Wing-Kam Wong 1 year ago
parent
commit
a142a75a2e
  1. 3
      packages/nocodb/src/db/BaseModelSqlv2.ts
  2. 6
      packages/nocodb/src/version-upgrader/ncDateTimeUpgrader.ts

3
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -7,7 +7,6 @@ import { nocoExecute } from 'nc-help';
import {
AuditOperationSubTypes,
AuditOperationTypes,
BoolType,
isSystemColumn,
isVirtualCol,
RelationTypes,
@ -57,7 +56,7 @@ import type {
SelectOption,
} from '../models';
import type { Knex } from 'knex';
import type { SortType } from 'nocodb-sdk';
import type { BoolType, SortType } from 'nocodb-sdk';
dayjs.extend(utc);

6
packages/nocodb/src/version-upgrader/ncDateTimeUpgrader.ts

@ -4,12 +4,12 @@ import { UITypes } from 'nocodb-sdk';
import { MetaTable } from '../utils/globals';
import Base from '../models/Base';
import Model from '../models/Model';
import NcConnectionMgrv2 from '../utils/common/NcConnectionMgrv2';
import { throwTimeoutError } from './ncUpgradeErrors';
import type { BaseType } from 'nocodb-sdk';
import type { NcUpgraderCtx } from './NcUpgrader';
import type { XKnex } from '../db/CustomKnex';
import type { Knex } from 'knex';
import NcConnectionMgrv2 from '../utils/common/NcConnectionMgrv2';
dayjs.extend(utc);
@ -87,8 +87,8 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
};
for (const model of models) {
let disableTriggers = [];
let enableTriggers = [];
const disableTriggers = [];
const enableTriggers = [];
try {
// if the table is missing in database, skip

Loading…
Cancel
Save