hotfix?
This commit is contained in:
parent
0646a21d97
commit
f92b300c1c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user