Browse Source

chore(nocodb): lint

pull/6772/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
cb539e4d01
  1. 6
      packages/nocodb/src/controllers/data-table.controller.ts
  2. 4
      packages/nocodb/src/services/data-table.service.ts

6
packages/nocodb/src/controllers/data-table.controller.ts

@ -151,7 +151,8 @@ export class DataTableController {
@Query('viewId') viewId: string, @Query('viewId') viewId: string,
@Param('columnId') columnId: string, @Param('columnId') columnId: string,
@Param('rowId') rowId: string, @Param('rowId') rowId: string,
@Body() refRowIds: string | string[] | number | number[] | Record<string, any>, @Body()
refRowIds: string | string[] | number | number[] | Record<string, any>,
) { ) {
return await this.dataTableService.nestedLink({ return await this.dataTableService.nestedLink({
modelId, modelId,
@ -172,7 +173,8 @@ export class DataTableController {
@Query('viewId') viewId: string, @Query('viewId') viewId: string,
@Param('columnId') columnId: string, @Param('columnId') columnId: string,
@Param('rowId') rowId: string, @Param('rowId') rowId: string,
@Body() refRowIds: string | string[] | number | number[] | Record<string, any>, @Body()
refRowIds: string | string[] | number | number[] | Record<string, any>,
) { ) {
return await this.dataTableService.nestedUnlink({ return await this.dataTableService.nestedUnlink({
modelId, modelId,

4
packages/nocodb/src/services/data-table.service.ts

@ -368,7 +368,7 @@ export class DataTableService {
modelId: string; modelId: string;
columnId: string; columnId: string;
query: any; query: any;
refRowIds: string | string[] | number | number[]| Record<string, any>; refRowIds: string | string[] | number | number[] | Record<string, any>;
rowId: string; rowId: string;
}) { }) {
this.validateIds(param.refRowIds); this.validateIds(param.refRowIds);
@ -403,7 +403,7 @@ export class DataTableService {
modelId: string; modelId: string;
columnId: string; columnId: string;
query: any; query: any;
refRowIds: string | string[] | number | number[]| Record<string, any>; refRowIds: string | string[] | number | number[] | Record<string, any>;
rowId: string; rowId: string;
}) { }) {
this.validateIds(param.refRowIds); this.validateIds(param.refRowIds);

Loading…
Cancel
Save