Skip to content

Commit

Permalink
fix: 캐시에서 ChatType 가져오지 않는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Curry4182 committed Apr 11, 2024
1 parent 6457c32 commit 90216c5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.stereotype.Component;

import com.programmers.lime.domains.chat.model.ChatInfoWithMember;
import com.programmers.lime.domains.chat.model.ChatType;
import com.programmers.lime.redis.chat.listener.IChatListener;
import com.programmers.lime.redis.chat.model.ChatInfoWithMemberCache;

Expand Down Expand Up @@ -38,6 +39,7 @@ private ChatInfoWithMember toChatInfoWithMember(final ChatInfoWithMemberCache ch
.profileImage(chatInfoWithMemberCache.profileImage())
.message(chatInfoWithMemberCache.message())
.sendAt(toLocalDateTime(chatInfoWithMemberCache.sendAt()))
.chatType(ChatType.valueOf(chatInfoWithMemberCache.chatType()))
.build();
}

Expand Down

0 comments on commit 90216c5

Please sign in to comment.