Browse Source

chore(nocodb): lint

pull/6772/head
աɨռɢӄաօռɢ 11 months 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,
@Param('columnId') columnId: 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({
modelId,
@ -172,7 +173,8 @@ export class DataTableController {
@Query('viewId') viewId: string,
@Param('columnId') columnId: 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({
modelId,

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

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

Loading…
Cancel
Save