Browse Source

chore: lint

pull/6612/head
Pranav C 1 year ago
parent
commit
297cb1bea6
  1. 2
      packages/nocodb/src/controllers/data-alias-export.controller.ts
  2. 2
      packages/nocodb/src/guards/data-api-limiter.guard.ts
  3. 4
      packages/nocodb/src/guards/meta-api-limiter.guard.ts
  4. 3
      packages/nocodb/src/modules/global/global.module.ts

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

@ -9,7 +9,7 @@ import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware';
import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard'; import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard';
@Controller() @Controller()
@UseGuards(DataApiLimiterGuard,GlobalGuard) @UseGuards(DataApiLimiterGuard, GlobalGuard)
@Throttle({ data: {} }) @Throttle({ data: {} })
export class DataAliasExportController { export class DataAliasExportController {
constructor(private datasService: DatasService) {} constructor(private datasService: DatasService) {}

2
packages/nocodb/src/guards/data-api-limiter.guard.ts

@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
import type { CanActivate, ExecutionContext } from '@nestjs/common'; import type { CanActivate, ExecutionContext } from '@nestjs/common';
@Injectable() @Injectable()
export class DataApiLimiterGuard implements CanActivate{ export class DataApiLimiterGuard implements CanActivate {
async canActivate(_context: ExecutionContext): Promise<boolean> { async canActivate(_context: ExecutionContext): Promise<boolean> {
return true; return true;
} }

4
packages/nocodb/src/guards/meta-api-limiter.guard.ts

@ -1,5 +1,5 @@
import {CanActivate, Injectable} from '@nestjs/common'; import { Injectable } from '@nestjs/common';
import type { ExecutionContext } from '@nestjs/common'; import type { CanActivate, ExecutionContext } from '@nestjs/common';
@Injectable() @Injectable()
export class MetaApiLimiterGuard implements CanActivate { export class MetaApiLimiterGuard implements CanActivate {

3
packages/nocodb/src/modules/global/global.module.ts

@ -13,9 +13,6 @@ import { UsersService } from '~/services/users/users.service';
import { TelemetryService } from '~/services/telemetry.service'; import { TelemetryService } from '~/services/telemetry.service';
import { AppHooksListenerService } from '~/services/app-hooks-listener.service'; import { AppHooksListenerService } from '~/services/app-hooks-listener.service';
import { UsersModule } from '~/modules/users/users.module'; import { UsersModule } from '~/modules/users/users.module';
import {DataApiLimiterGuard} from "~/guards/data-api-limiter.guard";
import {MetaApiLimiterGuard} from "~/guards/meta-api-limiter.guard";
import {PublicApiLimiterGuard} from "~/guards/public-api-limiter.guard";
export const JwtStrategyProvider: Provider = { export const JwtStrategyProvider: Provider = {
provide: JwtStrategy, provide: JwtStrategy,

Loading…
Cancel
Save