Skip to content

Commit

Permalink
fix: files
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladik-gif committed Oct 6, 2024
1 parent a23026c commit b2b5910
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@
import lombok.SneakyThrows;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

@Configuration
@RequiredArgsConstructor
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/chat/yourway/model/Contact.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class Contact implements UserDetails {
@OneToMany(mappedBy = "sender", fetch = FetchType.LAZY)
private List<Message> messages;

@ManyToMany
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(
schema = "chat",
name = "unread_messages",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/chat/yourway/service/TopicService.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private List<PrivateTopicInfoResponseDto> toListInfoPrivateResponseDto(List<Topi
.toList();
}

public List<TopicResponseDto> toListResponseDto(List<Topic> topics, @Context Contact me) {
private List<TopicResponseDto> toListResponseDto(List<Topic> topics, @Context Contact me) {
return topics.stream()
.map(topic -> topicMapper.toResponseDto(topic, me))
.toList();
Expand Down

0 comments on commit b2b5910

Please sign in to comment.