Browse Source

chore: lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
80a9d93bff
  1. 4
      packages/nocodb-nest/src/app.module.ts
  2. 4
      packages/nocodb-nest/src/controllers/users/users.controller.ts
  3. 7
      packages/nocodb-nest/src/modules/users/users.module.ts
  4. 1
      packages/nocodb-nest/src/services/socket.service.ts

4
packages/nocodb-nest/src/app.module.ts

@ -5,7 +5,7 @@ import { GlobalExceptionFilter } from './filters/global-exception/global-excepti
import NcPluginMgrv2 from './helpers/NcPluginMgrv2'; import NcPluginMgrv2 from './helpers/NcPluginMgrv2';
import { GlobalMiddleware } from './middlewares/global/global.middleware'; import { GlobalMiddleware } from './middlewares/global/global.middleware';
import { GuiMiddleware } from './middlewares/gui/gui.middleware'; import { GuiMiddleware } from './middlewares/gui/gui.middleware';
import { PublicMiddleware } from './middlewares/public/public.middleware' import { PublicMiddleware } from './middlewares/public/public.middleware';
import { DatasModule } from './modules/datas/datas.module'; import { DatasModule } from './modules/datas/datas.module';
import { AuthService } from './services/auth.service'; import { AuthService } from './services/auth.service';
import { UsersModule } from './modules/users/users.module'; import { UsersModule } from './modules/users/users.module';
@ -18,11 +18,11 @@ import { AuthTokenStrategy } from './strategies/authtoken.strategy/authtoken.str
import { BaseViewStrategy } from './strategies/base-view.strategy/base-view.strategy'; import { BaseViewStrategy } from './strategies/base-view.strategy/base-view.strategy';
import NcUpgrader from './version-upgrader/NcUpgrader'; import NcUpgrader from './version-upgrader/NcUpgrader';
import { MetasModule } from './modules/metas/metas.module'; import { MetasModule } from './modules/metas/metas.module';
import NocoCache from './cache/NocoCache';
import type { import type {
MiddlewareConsumer, MiddlewareConsumer,
OnApplicationBootstrap, OnApplicationBootstrap,
} from '@nestjs/common'; } from '@nestjs/common';
import NocoCache from './cache/NocoCache';
@Module({ @Module({
imports: [ imports: [

4
packages/nocodb-nest/src/controllers/users/users.controller.ts

@ -141,9 +141,7 @@ export class UsersController {
} }
@Get('/auth/google') @Get('/auth/google')
@UseGuards( @UseGuards(AuthGuard('google'))
AuthGuard('google'),
)
googleAuthenticate(@Request() req) { googleAuthenticate(@Request() req) {
// this.googleStrategy.authenticate(req, { // this.googleStrategy.authenticate(req, {
// scope: ['profile', 'email'], // scope: ['profile', 'email'],

7
packages/nocodb-nest/src/modules/users/users.module.ts

@ -1,9 +1,12 @@
import { Module } from '@nestjs/common'; import { Module } from '@nestjs/common';
import { GoogleStrategy, GoogleStrategyProvider } from '../../strategies/google.strategy/google.strategy' import { PassportModule } from '@nestjs/passport';
import {
GoogleStrategy,
GoogleStrategyProvider,
} from '../../strategies/google.strategy/google.strategy';
import { GlobalModule } from '../global/global.module'; import { GlobalModule } from '../global/global.module';
import { UsersService } from '../../services/users/users.service'; import { UsersService } from '../../services/users/users.service';
import { UsersController } from '../../controllers/users/users.controller'; import { UsersController } from '../../controllers/users/users.controller';
import { PassportModule } from '@nestjs/passport';
@Module({ @Module({
imports: [GlobalModule, PassportModule], imports: [GlobalModule, PassportModule],

1
packages/nocodb-nest/src/services/socket.service.ts

@ -27,7 +27,6 @@ export class SocketService implements OnModuleInit {
) {} ) {}
async onModuleInit() { async onModuleInit() {
console.log(Noco.httpServer);
this._io = new Server( this._io = new Server(
Noco.httpServer ?? this.httpAdapterHost.httpAdapter.getHttpServer(), Noco.httpServer ?? this.httpAdapterHost.httpAdapter.getHttpServer(),
{ {

Loading…
Cancel
Save