Skip to content

Commit

Permalink
Merge pull request #284 from JNU-econovation/feature/BE-104
Browse files Browse the repository at this point in the history
[BE-106] attachment 존재 유무 로직 변경 및 portfolio 파일 이동
  • Loading branch information
rlajm1203 authored Sep 27, 2024
2 parents b0c2c36 + 2374460 commit e92eeff
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
Binary file removed portfolio.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion server/Recruit-Api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ FROM openjdk:11-jdk-slim
EXPOSE 8080

COPY ./build/libs/*.jar app.jar
COPY ../portfolio.pdf portfolio.pdf
#ARG PROFILE=prod
#ARG PROFILE=local
ENV PROFILE=${PROFILE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void handle() {
// 포트폴리오 파일을 가져오는 메서드
private File getPortfolioFile() {
// applicant에서 포트폴리오 파일 경로나 ID 등을 이용해 파일을 가져오는 로직
String filePath = "./portfolio.pdf";
String filePath = "./server/Recruit-Api/src/main/resources/static/mail/portfolio.pdf";
return new File(filePath);
}

Expand Down Expand Up @@ -171,7 +171,7 @@ private boolean sendEmailWithRetry(
Map<MongoAnswer, Integer> retryCounts,
Queue<MongoAnswer> failQueue) {
boolean result;
if (!attachment.exists()) {
if (attachment.exists()) {
result =
emailSender.sendEmailWithAttachment(
applicant.getQna().get("email").toString(),
Expand Down
Binary file not shown.

0 comments on commit e92eeff

Please sign in to comment.