added chats with another users
This commit is contained in:
@@ -77,4 +77,9 @@ public class UserService {
|
||||
.avatar(user.getAvatarUrl())
|
||||
.build();
|
||||
}
|
||||
|
||||
public Long getUserIdByLogin(String login) {
|
||||
return repository.findUserByLogin(login)
|
||||
.orElseThrow(() -> new EntityNotFoundException("User not found"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user