Browse Source

fix: remove unnecessary decorator

pull/6612/head
Pranav C 1 year ago
parent
commit
2166b3eb8f
  1. 2
      packages/nocodb/src/controllers/columns.controller.ts
  2. 2
      packages/nocodb/src/controllers/data-alias-export.controller.ts

2
packages/nocodb/src/controllers/columns.controller.ts

@ -11,14 +11,12 @@ import {
UseGuards,
} from '@nestjs/common';
import { ColumnReqType } from 'nocodb-sdk';
import { Throttle } from '@nestjs/throttler';
import type { Column } from '~/models';
import { GlobalGuard } from '~/guards/global/global.guard';
import { ColumnsService } from '~/services/columns.service';
import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware';
import { MetaApiLimiterGuard } from '~/guards/meta-api-limiter.guard';
@Throttle({ data: {} })
@Controller()
@UseGuards(MetaApiLimiterGuard, GlobalGuard)
export class ColumnsController {

2
packages/nocodb/src/controllers/data-alias-export.controller.ts

@ -1,6 +1,5 @@
import { Controller, Get, Request, Response, UseGuards } from '@nestjs/common';
import * as XLSX from 'xlsx';
import { Throttle } from '@nestjs/throttler';
import { GlobalGuard } from '~/guards/global/global.guard';
import { DatasService } from '~/services/datas.service';
import { extractCsvData, extractXlsxData } from '~/modules/datas/helpers';
@ -10,7 +9,6 @@ import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard';
@Controller()
@UseGuards(DataApiLimiterGuard, GlobalGuard)
@Throttle({ data: {} })
export class DataAliasExportController {
constructor(private datasService: DatasService) {}

Loading…
Cancel
Save