Skip to content

Commit

Permalink
Merge pull request #472 from boostcampwm2023/revert-469-be-feautre/#468โ€ฆ
Browse files Browse the repository at this point in the history
โ€ฆ-change-attaching-files

Revert "[feat] ํŒŒ์ผ ์‹œ์Šคํ…œ์œผ๋กœ ์ด๋ฏธ์ง€๋ฅผ ๊ด€๋ฆฌํ•˜๋„๋ก ํ•˜๋Š” ์„œ๋น„์Šค ์ƒ์„ฑ"
  • Loading branch information
kmi0817 authored Oct 6, 2024
2 parents aa3fe28 + 748e59b commit fd817d4
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 74 deletions.
6 changes: 2 additions & 4 deletions BE/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { TimelinesModule } from './timelines/timelines.module';
import { AuthModule } from './auth/auth.module';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { DatabaseModule } from './database/database.module';
// import { StorageModule } from './storage/storage.module';
import { FileModule } from './file/file.module';
import { StorageModule } from './storage/storage.module';
import { JwtModule } from '@nestjs/jwt';
import { EmailModule } from './email/email.module';

Expand All @@ -23,8 +22,7 @@ import { EmailModule } from './email/email.module';
secret: process.env.JWT_SECRET_ACCESS,
signOptions: { expiresIn: '30d' },
}),
// StorageModule,
FileModule,
StorageModule,
UsersModule,
PostingsModule,
TimelinesModule,
Expand Down
5 changes: 2 additions & 3 deletions BE/src/app.service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// import { StorageService } from './storage/storage.service';
import { FileService } from './file/file.service';
import { StorageService } from './storage/storage.service';
import { Injectable } from '@nestjs/common';

@Injectable()
export class AppService {
constructor(private readonly storageService: FileService) {}
constructor(private readonly storageService: StorageService) {}

getHello(): string {
return `
Expand Down
6 changes: 2 additions & 4 deletions BE/src/auth/auth.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { AuthService } from './auth.service';
import { AuthController } from './auth.controller';
import { UsersModule } from 'src/users/users.module';
import { UsersService } from 'src/users/users.service';
// import { StorageService } from 'src/storage/storage.service';
import { FileService } from 'src/file/file.service';
import { StorageService } from 'src/storage/storage.service';
import { HttpModule } from '@nestjs/axios';
import { AuthGuard } from './auth.guard';
import { EmailModule } from 'src/email/email.module';
Expand All @@ -17,8 +16,7 @@ import { AppleLoginStrategy } from 'src/socialLogin/apple-login-strategy';
providers: [
AuthService,
UsersService,
// StorageService,
FileService,
StorageService,
AuthGuard,
KakaoLoginStrategy,
AppleLoginStrategy,
Expand Down
8 changes: 0 additions & 8 deletions BE/src/file/file.module.ts

This file was deleted.

36 changes: 0 additions & 36 deletions BE/src/file/file.service.ts

This file was deleted.

5 changes: 2 additions & 3 deletions BE/src/postings/postings.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import { PostingsRepository } from './repositories/postings.repository';
import { LikedsRepository } from './repositories/likeds.repository';
import { ReportsRepository } from './repositories/reports.repository';
import { UsersModule } from '../users/users.module';
// import { StorageModule } from 'src/storage/storage.module';
import { FileModule } from 'src/file/file.module';
import { StorageModule } from 'src/storage/storage.module';

@Module({
imports: [DatabaseModule, UsersModule, FileModule],
imports: [DatabaseModule, UsersModule, StorageModule],
controllers: [PostingsController],
providers: [
...postingsProviders,
Expand Down
5 changes: 2 additions & 3 deletions BE/src/postings/postings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import { Liked } from './entities/liked.entity';
import { Report } from './entities/report.entity';
import { Period, Season } from './postings.types';
import { BLOCKING_LIMIT } from './postings.constants';
// import { StorageService } from 'src/storage/storage.service';
import { FileService } from 'src/file/file.service';
import { StorageService } from 'src/storage/storage.service';
import { BlockRepository } from 'src/users/block.repository';

@Injectable()
Expand All @@ -29,7 +28,7 @@ export class PostingsService {
private readonly postingsRepository: PostingsRepository,
private readonly likedsRepository: LikedsRepository,
private readonly reportsRepository: ReportsRepository,
private readonly storageService: FileService
private readonly storageService: StorageService
) {}

async create(userId: string, createPostingDto: CreatePostingDto) {
Expand Down
6 changes: 2 additions & 4 deletions BE/src/timelines/timelines.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ import { PostingsRepository } from '../postings/repositories/postings.repository
import { LikedsRepository } from '../postings/repositories/likeds.repository';
import { ReportsRepository } from '../postings/repositories/reports.repository';
import { postingsProviders } from '../postings/postings.providers';
// import { StorageModule } from '../storage/storage.module';
import { FileModule } from '../file/file.module';
import { StorageModule } from '../storage/storage.module';

@Module({
imports: [
DatabaseModule,
PostingsModule,
UsersModule,
// StorageModule,
FileModule,
StorageModule,
HttpModule,
],
controllers: [TimelinesController],
Expand Down
5 changes: 2 additions & 3 deletions BE/src/timelines/timelines.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import { CreateTimelineDto } from './dto/create-timeline.dto';
import { UpdateTimelineDto } from './dto/update-timeline.dto';
import { TimelinesRepository } from './timelines.repository';
import { Timeline } from './entities/timeline.entity';
// import { StorageService } from '../storage/storage.service';
import { FileService } from '../file/file.service';
import { StorageService } from '../storage/storage.service';
import { PostingsService } from '../postings/postings.service';
import { KAKAO_KEYWORD_SEARCH, PAPAGO_URL } from './timelines.constants';
import { PostingsRepository } from '../postings/repositories/postings.repository';
Expand All @@ -22,7 +21,7 @@ export class TimelinesService {
private readonly timelinesRepository: TimelinesRepository,
private readonly postingsRepository: PostingsRepository,
private readonly postingsService: PostingsService,
private readonly storageService: FileService,
private readonly storageService: StorageService,
private readonly httpService: HttpService
) {}

Expand Down
5 changes: 2 additions & 3 deletions BE/src/users/users.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import { UsersService } from './users.service';
import { UsersController } from './users.controller';
import { usersProvider } from './users.providers';
import { UserRepository } from './users.repository';
// import { StorageModule } from '../storage/storage.module';
import { FileModule } from '../file/file.module';
import { StorageModule } from '../storage/storage.module';
import { DatabaseModule } from '../database/database.module';
import { BlockRepository } from './block.repository';

@Module({
imports: [DatabaseModule, FileModule],
imports: [DatabaseModule, StorageModule],
controllers: [UsersController],
providers: [UsersService, ...usersProvider, UserRepository, BlockRepository],
exports: [UserRepository, UsersService, BlockRepository],
Expand Down
5 changes: 2 additions & 3 deletions BE/src/users/users.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BadRequestException, Injectable } from '@nestjs/common';
import { UserInfoDto } from './dto/user-info.dto';
// import { StorageService } from 'src/storage/storage.service';
import { FileService } from 'src/file/file.service';
import { StorageService } from 'src/storage/storage.service';
import { UserRepository } from './users.repository';
import { CheckDuplicatedNameResponseDto } from './dto/check-duplicated-name-response.dto';
import { UpdateUserDto } from './dto/update-user.dto';
Expand All @@ -13,7 +12,7 @@ export class UsersService {
constructor(
private userRepository: UserRepository,
private blockRepository: BlockRepository,
private readonly storageService: FileService
private readonly storageService: StorageService
) {}

nameGenerator() {
Expand Down

0 comments on commit fd817d4

Please sign in to comment.