This commit is contained in:
_Bastler 2021-10-27 17:24:02 +02:00
parent 0646a21d97
commit f92b300c1c

View File

@ -7,6 +7,8 @@ import java.time.Instant;
import java.util.List;
import java.util.Optional;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.http.HttpStatus;
@ -82,6 +84,7 @@ public class InviteController extends BaseController {
* @return the invite
*/
@GetMapping("/{code}")
@Transactional
public Invite get(@PathVariable("code") String code) {
Invite invite = inviteManager.getByCode(code);
if (invite == null) {