Skip to content

Commit

Permalink
✨ baseUrl설정
Browse files Browse the repository at this point in the history
  • Loading branch information
rong5026 committed Oct 27, 2024
1 parent f42c66d commit 68fdce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/sinabro/sinabro/service/SurveyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class SurveyService {
private final SurveyRepository surveyRepository;
private final SubmitterRepository submitterRepository;
private final CreatorRepository creatorRepository;
private static final String baseUrl = "https://front-psi-two-39.vercel.app/";

public SurveyResponse createSurvey(SurveyRequest surveyRequest) {
Survey survey = Survey.builder()
Expand All @@ -52,7 +53,7 @@ public SurveyResponse createSurvey(SurveyRequest surveyRequest) {
}

private String generateSurveyUrl() {
return UUID.randomUUID().toString().replace("-", "").substring(0, 5); // 5자리 문자열
return baseUrl + UUID.randomUUID().toString().replace("-", "").substring(0, 5); // 5자리 문자열
}

public SurveyRequest getSurveyAnswers(String uuid) {
Expand Down

0 comments on commit 68fdce2

Please sign in to comment.