Skip to content

Commit

Permalink
removed sheets module and dependency to old files.
Browse files Browse the repository at this point in the history
  • Loading branch information
hardik-id committed Jan 8, 2024
1 parent b1bbb3b commit d8ff23f
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 327 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ dist

# Azure deployment file
.azure
/src/config/devoteamnl-park-app.json


# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
Expand Down
6 changes: 4 additions & 2 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
} from '@nestjs/common';
import { AppService } from './app.service';
import { JwtAuthGuard } from './auth/jwt/jwt-auth.guard';
import { SheetsService } from './sheets/sheets.service';
import { OpenaiService } from './openai/openai.service';
import { GoogledriveService } from './googledrive/googledrive.service';

Expand All @@ -18,13 +17,13 @@ export class AppController {

constructor(
private readonly appService: AppService,
private readonly sheetsService: SheetsService,
private readonly openaiService: OpenaiService,
private readonly googledriveService: GoogledriveService,
) {}

@Get()
getHello(): string {
this.logger.log('Hello World!');
return this.appService.getHello();
}

Expand All @@ -43,12 +42,6 @@ export class AppController {
// return { text: chatGPTResponse.content };
// }

@UseGuards(JwtAuthGuard)
@Get('sheets')
getSheets(@Request() req): Promise<any> {
return this.sheetsService.getContent(req.user.id, 15, 0);
}

@UseGuards(JwtAuthGuard)
@Post('upload')
uploadURL(@Request() req): Promise<string> {
Expand Down
2 changes: 0 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { AppService } from './app.service';
import { AuthModule } from './auth/auth.module';
import { ConfigModule } from '@nestjs/config';
import { UsersModule } from './users/users.module';
import { SheetsModule } from './sheets/sheets.module';
import { CommunicationsService } from './communications/communications.service';
import { CommunicationsModule } from './communications/communications.module';
import { ScheduleModule } from '@nestjs/schedule';
Expand Down Expand Up @@ -43,7 +42,6 @@ const ENV = process.env.NODE_ENV;
autoLoadEntities: true,
}),
UsersModule,
SheetsModule,
CommunicationsModule,
ScheduleModule.forRoot(),
OpenaiModule,
Expand Down
20 changes: 0 additions & 20 deletions src/sheets/sheets.module.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/sheets/sheets.service.spec.ts

This file was deleted.

276 changes: 0 additions & 276 deletions src/sheets/sheets.service.ts

This file was deleted.

0 comments on commit d8ff23f

Please sign in to comment.