File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/java/com/faforever/api/clan Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1111import io .swagger .annotations .ApiResponses ;
1212import lombok .RequiredArgsConstructor ;
1313import org .springframework .security .access .prepost .PreAuthorize ;
14+ import org .springframework .transaction .annotation .Transactional ;
1415import org .springframework .web .bind .annotation .GetMapping ;
1516import org .springframework .web .bind .annotation .PostMapping ;
1617import 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 ) {
You can’t perform that action at this time.
0 commit comments