Skip to content

Commit 9785734

Browse files
committed
fixes
1 parent da8f981 commit 9785734

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/ru/mystamps/web/controller/SeriesController.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public void showForm(
134134
model.addAttribute("countries", countries);
135135

136136
model.addAttribute("years", YEARS);
137+
model.addAttribute("urlSuggest", Url.INFO_COUNTRY_SERIES_PAGE);
137138

138139
AddSeriesForm addSeriesForm = new AddSeriesForm();
139140
addSeriesForm.setPerforated(true);
@@ -427,9 +428,8 @@ public String searchSeriesByCatalog(
427428
*/
428429
@ResponseBody
429430
@GetMapping(Url.INFO_COUNTRY_SERIES_PAGE)
430-
public String guessCountryBy(@CurrentUser Integer currentUserId) {
431-
String result = seriesService.guessCountryBy(currentUserId);
432-
return "{\"country\":\"" + result + "\"}";
431+
public String suggestCountryForUser(@CurrentUser Integer currentUserId) {
432+
return countryService.suggestCountryForUser(currentUserId);
433433
}
434434

435435
// CheckStyle: ignore LineLength for next 1 line

0 commit comments

Comments
 (0)