From dfe75ea0409a958f1b61b5a172b366e13c4368d2 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 7 Aug 2022 18:11:13 +0200 Subject: [PATCH] add transactional --- src/main/java/com/covas/Resources/TokenRessource.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/covas/Resources/TokenRessource.java b/src/main/java/com/covas/Resources/TokenRessource.java index 1b2bd20..77ccf7d 100644 --- a/src/main/java/com/covas/Resources/TokenRessource.java +++ b/src/main/java/com/covas/Resources/TokenRessource.java @@ -5,6 +5,7 @@ import java.time.Duration; import java.time.LocalDateTime; import javax.inject.Inject; +import javax.transaction.Transactional; import javax.ws.rs.CookieParam; import javax.ws.rs.DELETE; import javax.ws.rs.GET; @@ -41,6 +42,7 @@ public class TokenRessource { @GET @Produces(MediaType.APPLICATION_JSON) + @Transactional public Response tokenRefresh(@HeaderParam("Authorization") String auth, @CookieParam("user") String user, @CookieParam("jwt") String jwtCookie) { final int expires = 300; String name = "anonymous";