Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket: ✨ Path to Retrieve Last Message ID #192

Merged
merged 4 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: impl last_message_id_save_service
  • Loading branch information
psychology50 committed Nov 6, 2024
commit 5ee251295de9b048907eb131b5480f316630d5dc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package kr.co.pennyway.socket.service;

import kr.co.pennyway.domain.domains.chatstatus.service.ChatMessageStatusService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class LastMessageIdSaveService {
private final ChatMessageStatusService chatMessageStatusService;

public void execute(Long userId, Long chatRoomId, Long lastReadMessageId) {
chatMessageStatusService.saveLastReadMessageId(userId, chatRoomId, lastReadMessageId);
}
}