Skip to content

Commit

Permalink
release: [BE] update env -> re release
Browse files Browse the repository at this point in the history
release: [BE] update env -> re release
  • Loading branch information
HKLeeeee authored Nov 22, 2023
2 parents 3255bee + 352e472 commit 07b988b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/back-api-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
echo "SYNCHRONIZED=${{secrets.SYNCHRONIZED}}" >> .env
echo "NODE_ENV=production" >> .env
echo "RUNNING_SERVER=${{secrets.RUNNING_SERVER_URL}}" >> .env
echo "TIMEOUT=${{secrets.TIMEOUT}}" >> .env
echo "REDIS_HOST=${{secrets.REDIS_HOST}}" >> .env
echo "REDIS_PORT=${{secrets.REDIS_PORT}}" >> .env
echo "REDIS_PASSWORD=${{secrets.REDIS_PASSWORD}}" >> .env
Expand All @@ -66,5 +67,6 @@ jobs:
echo "JWT_ACCESS_EXPIRE=${{secrets.JWT_ACCESS_EXPIRE}}" >> .env
echo "JWT_REFRESH_SECRET=${{secrets.JWT_REFRESH_SECRET}}" >> .env
echo "JWT_REFRESH_EXPIRE=${{secrets.JWT_REFRESH_EXPIRE}}" >> .env
echo "SESSION_SECRET=${{secrets.SESSION_SECRET}}" >> .env
bash deploy.sh >> /dev/deploy.log 2>&1
4 changes: 3 additions & 1 deletion backEnd/api/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Controller,
Get,
Logger,
Post,
Query,
Req,
Expand All @@ -17,6 +18,7 @@ import { JwtAuthGuard } from './auth.guard';

@Controller('auth')
export class AuthController {
private logger = new Logger(AuthController.name);
constructor(
private githubService: GithubService,
private googleService: GoogleService,
Expand Down Expand Up @@ -45,7 +47,7 @@ export class AuthController {
await this.userService.addUser(user, 'github');
findUser = await this.userService.findUser(user);
}

this.logger.debug(findUser);
if (findUser.oauth !== 'github') {
return { message: '다른 서비스로 가입한 내역이 있습니다.' }; // TODO: set StatusCode
}
Expand Down
11 changes: 0 additions & 11 deletions backEnd/api/src/users/users.controller.ts

This file was deleted.

2 changes: 0 additions & 2 deletions backEnd/api/src/users/users.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { UsersService } from './users.service';
import { UserEntity } from './entity/user.entity';
import { UsersController } from './users.controller';

@Module({
imports: [TypeOrmModule.forFeature([UserEntity])],
providers: [UsersService],
exports: [UsersService],
controllers: [UsersController],
})
export class UsersModule {}

0 comments on commit 07b988b

Please sign in to comment.