diff --git a/invite/src/main/java/de/bstly/we/invite/controller/InviteController.java b/invite/src/main/java/de/bstly/we/invite/controller/InviteController.java index dc79b90..72125c3 100644 --- a/invite/src/main/java/de/bstly/we/invite/controller/InviteController.java +++ b/invite/src/main/java/de/bstly/we/invite/controller/InviteController.java @@ -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) {