Skip to content

Commit 9dfa2cb

Browse files
committed
This is just guessing
1 parent 3b77ebd commit 9dfa2cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/faforever/api/clan/ClansController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.swagger.annotations.ApiResponses;
1212
import lombok.RequiredArgsConstructor;
1313
import org.springframework.security.access.prepost.PreAuthorize;
14+
import org.springframework.transaction.annotation.Transactional;
1415
import org.springframework.web.bind.annotation.GetMapping;
1516
import org.springframework.web.bind.annotation.PostMapping;
1617
import org.springframework.web.bind.annotation.RequestMapping;
@@ -58,6 +59,7 @@ public MeResult me() {
5859
@PostMapping(path = "/create", produces = APPLICATION_JSON_VALUE)
5960
@PreAuthorize("hasRole('ROLE_USER')")
6061
@Deprecated // use POST /data/clans instead (with a founder in relationships)
62+
@Transactional
6163
public Map<String, Serializable> createClan(@RequestParam(value = "name") String name,
6264
@RequestParam(value = "tag") String tag,
6365
@RequestParam(value = "description", required = false) String description) {

0 commit comments

Comments
 (0)