Fix dependencies
This commit is contained in:
1 parent
90df65f8f9
commit
6daa2dea77
2 files changed
+5
No files matched your search
@@ -20,6 +20,8 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.google.code.gson:gson:2.9.0'
|
||||
implementation 'com.auth0:java-jwt:4.0.0'
|
||||
implementation 'org.springframework:spring-websocket:5.3.22'
|
||||
implementation 'org.springframework:spring-messaging:5.3.22'
|
||||
implementation 'org.modelmapper:modelmapper:3.1.0'
|
||||
|
||||
@@ -13,6 +13,8 @@ import site.easystartup.web.chat.domain.request.ChatMessageRequest;
|
||||
import site.easystartup.web.chat.repo.ChatMessageRepo;
|
||||
import site.easystartup.web.chat.service.ChatService;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Controller
|
||||
@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
||||
public class ChatController {
|
||||
@@ -25,6 +27,7 @@ public class ChatController {
|
||||
var room = chatService
|
||||
.getChatRoom(chatMessage.getRecipientName(), chatMessage.getRecipientId());
|
||||
chatMessage.setChatId(room.getChatId());
|
||||
room.setLast_update(new Date());
|
||||
|
||||
ChatMessage saved = chatService.save(chatMessage);
|
||||
|
||||
|
||||
Reference in new issue
Block a user