diff --git a/packages/server/src/application/application.service.ts b/packages/server/src/application/application.service.ts index da72a5b..ccc2055 100644 --- a/packages/server/src/application/application.service.ts +++ b/packages/server/src/application/application.service.ts @@ -19,6 +19,12 @@ export class ApplicationService { ) {} async create(user: Express.User, createApplicationDto: CreateApplicationDto) { + const app = await this.applicationRepository.findOneBy({ + email: user.email, + club: { id: createApplicationDto.clubid }, + }); + if (app) + throw new HttpException('이미 지원했습니다.', HttpStatus.BAD_REQUEST); const apps = await this.applicationRepository.countBy({ email: user.email, });