feat: shorten invite links

This commit is contained in:
Tim
2025-09-01 11:25:32 +08:00
parent 90eee03198
commit 8544803e62
3 changed files with 37 additions and 6 deletions

View File

@@ -9,4 +9,8 @@ import java.util.Optional;
public interface InviteTokenRepository extends JpaRepository<InviteToken, String> {
Optional<InviteToken> findByInviterAndCreatedDate(User inviter, LocalDate createdDate);
Optional<InviteToken> findByShortToken(String shortToken);
boolean existsByShortToken(String shortToken);
}