From f92b300c1c1f95f14948a174e79e8124f85736e9 Mon Sep 17 00:00:00 2001 From: _Bastler Date: Wed, 27 Oct 2021 17:24:02 +0200 Subject: [PATCH] hotfix? --- .../java/de/bstly/we/invite/controller/InviteController.java | 3 +++ 1 file changed, 3 insertions(+) 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) {