feat: add Stream table & boilerplate

This commit is contained in:
2026-05-03 12:51:32 +01:00
parent 942f0d1a77
commit 265a96acc1
7 changed files with 88 additions and 2 deletions

View File

@@ -67,6 +67,10 @@ public class UserService {
return jwtService.generateToken(user.getId());
}
public Optional<User> getUserByStreamKey(String streamKey) {
return userRepository.findByStreamKey(streamKey);
}
private User createOrUpdateUser(User user) {
Optional<User> existingUser = userRepository.findByGoogleId(user.getGoogleId());