tg login
This commit is contained in:
@@ -24,7 +24,7 @@ class UserService(val userRepo: UserRepo) {
|
||||
}
|
||||
|
||||
fun getUserByTelegramId(telegramId: Long): User {
|
||||
return userRepo.findByTgId(telegramId.toString())?: throw NotFoundException("User with telegramId: $telegramId not found")
|
||||
return userRepo.findByTgId(telegramId)?: throw NotFoundException("User with telegramId: $telegramId not found")
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user