|
6 | 6 | import com.objectcomputing.pulsesurvey.repositories.ResponseKeyRepository; |
7 | 7 | import com.objectcomputing.pulsesurvey.repositories.ResponseRepository; |
8 | 8 | import com.objectcomputing.pulsesurvey.repositories.UserCommentsRepository; |
9 | | -import com.objectcomputing.pulsesurvey.template.manager.SurveyTemplateManager; |
10 | 9 | import io.micronaut.context.annotation.Value; |
11 | 10 | import io.micronaut.core.util.CollectionUtils; |
12 | 11 | import io.micronaut.http.HttpResponse; |
@@ -41,9 +40,6 @@ public class SurveyResponseController { |
41 | 40 |
|
42 | 41 | @Inject |
43 | 42 | private UserCommentsRepository userCommentsRepo; |
44 | | -// |
45 | | -// @Inject |
46 | | -// private SurveyTemplateManager templateManager; |
47 | 43 |
|
48 | 44 | public void setResponseKeyRepo(ResponseKeyRepository responseKeyRepository) { |
49 | 45 | this.responseKeyRepo = responseKeyRepository; |
@@ -100,7 +96,7 @@ HttpResponse<String> happiness(String currentEmotion, String surveyKey) { |
100 | 96 | } |
101 | 97 |
|
102 | 98 | return HttpResponse.ok("Hello, your current emotion of " + currentEmotion + "!" + |
103 | | - " with a key of: " + surveyKey + " is duly noted."); |
| 99 | + " is duly noted."); |
104 | 100 | } |
105 | 101 |
|
106 | 102 | @Get("comment") |
@@ -185,7 +181,6 @@ ResponseKey markKeyAsUsed(String surveyKey) { |
185 | 181 |
|
186 | 182 | responseKey.ifPresent(responseKeyToSave -> { |
187 | 183 | responseKeyToSave.setUsed(true); |
188 | | - // this next line is blowing up - micronaut data issue |
189 | 184 | returnedResponseKey.set(responseKeyRepo.update(responseKeyToSave)); |
190 | 185 | }); |
191 | 186 | return returnedResponseKey.get(); |
|
0 commit comments