synergy fix

This commit is contained in:
Michael Wain 2024-11-28 00:37:07 +03:00
parent 99987067cc
commit bc2b8322a4

View File

@ -324,6 +324,7 @@ public class DatabaseController {
public String remove_entry(@RequestParam Map<String, String> params) {
String section = params.get("section");
long entry_id = Long.parseLong(params.get("entry_id"));
switch (section) {
case "agge" -> { bioService.removeById(entry_id); synergyService.removeByEntityId(entry_id, SectionType.AGE); }
case "hobb" -> { hobbyService.removeById(entry_id); synergyService.removeByEntityId(entry_id, SectionType.HOBBY); }