Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

chore(nocodb): lint

Ramesh Mane0a1f65eb3a49
diff --git a/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts b/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts
index 1fba3fa71b..8286e50ee9 100644
--- a/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts
+++ b/packages/nocodb/src/controllers/internal/modules/UiGet.operations.ts
@@ -23,7 +23,8 @@ import { ExtensionsService } from '~/services/extensions.service';
@Injectable()
export class UiGetOperations
- implements InternalApiModule<InternalGETResponseType> {
+ implements InternalApiModule<InternalGETResponseType>
+{
constructor(
protected dataTableService: DataTableService,
protected tablesService: TablesService,
@@ -39,7 +40,7 @@ export class UiGetOperations
protected commentsService: CommentsService,
protected syncService: SyncService,
protected extensionsService: ExtensionsService,
- ) { }
+ ) {}
operations = [
'nestedDataList' as const,
'tableGet' as const,
@@ -240,8 +241,8 @@ export class UiGetOperations
return new PagedResponseImpl(
await this.extensionsService.extensionList(context, {
baseId: context.base_id,
- })
- )
+ }),
+ );
case 'extensionRead':
return await this.extensionsService.extensionRead(context, {
extensionId: req.query.extensionId as string,
diff --git a/packages/nocodb/src/controllers/internal/modules/UiPost.operations.ts b/packages/nocodb/src/controllers/internal/modules/UiPost.operations.ts
index b298644fcd..0d4929fb32 100644
--- a/packages/nocodb/src/controllers/internal/modules/UiPost.operations.ts
+++ b/packages/nocodb/src/controllers/internal/modules/UiPost.operations.ts
@@ -34,7 +34,8 @@ import { ExtensionsService } from '~/services/extensions.service';
@Injectable()
export class UiPostOperations
- implements InternalApiModule<InternalPOSTResponseType> {
+ implements InternalApiModule<InternalPOSTResponseType>
+{
constructor(
protected dataTableService: DataTableService,
protected tablesService: TablesService,
@@ -58,7 +59,7 @@ export class UiPostOperations
protected syncService: SyncService,
protected readonly nocoJobsService: NocoJobsService,
protected extensionsService: ExtensionsService,
- ) { }
+ ) {}
operations = [
'tableUpdate' as const,
'tableDelete' as const,
diff --git a/packages/nocodb/src/db/BaseModelSqlv2/relation-data-fetcher.ts b/packages/nocodb/src/db/BaseModelSqlv2/relation-data-fetcher.ts
index 272031a3bf..9e9c6eeabc 100644
--- a/packages/nocodb/src/db/BaseModelSqlv2/relation-data-fetcher.ts
+++ b/packages/nocodb/src/db/BaseModelSqlv2/relation-data-fetcher.ts
@@ -10,7 +10,7 @@ import { _wherePk, applyPaginate } from '~/helpers/dbHelpers';
import getAst from '~/helpers/getAst';
import { Filter, Model, View } from '~/models';
import { hasTableVisibilityAccess } from '~/helpers/tableHelpers';
-import { nocoExecute } from '~/utils/nocoExecute';
+// import { nocoExecute } from '~/utils/nocoExecute';
const GROUP_COL = '__nc_group_id';
@@ -108,9 +108,9 @@ export const relationDataFetcher = (param: {
const view = relationColOpts.fk_target_view_id
? await View.get(refContext, relationColOpts.fk_target_view_id)
: await View.getFirstCollaborativeView(
- refContext,
- childBaseModel.model.id,
- );
+ refContext,
+ childBaseModel.model.id,
+ );
await childBaseModel.applySortAndFilter({
table: childTable,
where,
@@ -139,7 +139,7 @@ export const relationDataFetcher = (param: {
// get one extra record to check if there are more records in case of v3 api and nested
query.limit(
(+rest?.limit || 25) +
- (apiVersion === NcApiVersion.V3 && nested ? 1 : 0),
+ (apiVersion === NcApiVersion.V3 && nested ? 1 : 0),
);
query.offset(+rest?.offset || 0);
@@ -284,7 +284,7 @@ export const relationDataFetcher = (param: {
// get one extra record to check if there are more records in case of v3 api and nested
qb.limit(
(+rest?.limit || 25) +
- (apiVersion === NcApiVersion.V3 && nested ? 1 : 0),
+ (apiVersion === NcApiVersion.V3 && nested ? 1 : 0),
);
}
qb.offset(selectAllRecords ? 0 : +rest?.offset || 0);
@@ -669,7 +669,7 @@ export const relationDataFetcher = (param: {
// get one extra record to check if there are more records in case of v3 api and nested
query.limit(
(+rest?.limit || 25) +
- (apiVersion === NcApiVersion.V3 && nested ? 1 : 0),
+ (apiVersion === NcApiVersion.V3 && nested ? 1 : 0),
);
query.offset(+rest?.offset || 0);
return baseModel.isSqlite
@@ -902,10 +902,10 @@ export const relationDataFetcher = (param: {
listArgs = dependencyFields;
try {
listArgs.filterArr = JSON.parse(listArgs.filterArrJson);
- } catch (e) {}
+ } catch (e) { }
try {
listArgs.sortArr = JSON.parse(listArgs.sortArrJson);
- } catch (e) {}
+ } catch (e) { }
}
const parentTable = await (
diff --git a/packages/nocodb/src/utils/internal-type.ts b/packages/nocodb/src/utils/internal-type.ts
index d765541a8c..94baaa6195 100644
--- a/packages/nocodb/src/utils/internal-type.ts
+++ b/packages/nocodb/src/utils/internal-type.ts
@@ -5,6 +5,7 @@ import type { Dashboard, Workflow } from '~/models';
import type {
Column,
DataReflection,
+ Extension,
Filter,
Hook,
HookLog,
@@ -14,7 +15,6 @@ import type {
Script,
Sort,
View,
- Extension
} from '~/models';
export type InternalGETResponseType = Promise<
@@ -47,12 +47,12 @@ export type InternalPOSTResponseType = Promise<
| OAuthClient[]
| { msg: string }
| {
- hasBreakingChanges: boolean;
- entities: {
- type: DependencyTableType;
- entity: Dashboard | Workflow;
- }[];
- }
+ hasBreakingChanges: boolean;
+ entities: {
+ type: DependencyTableType;
+ entity: Dashboard | Workflow;
+ }[];
+ }
| DataReflection
| MCPToken
| Script