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

fix: ETA 공지 알림 오지 않는 문제 해결 #610

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.ody.meeting.domain.Meeting;
import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import java.time.format.DateTimeFormatter;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
Expand All @@ -13,6 +14,7 @@
public class FcmTopic {

private static final String TOPIC_NAME_DELIMITER = "_";
private static final DateTimeFormatter MEETING_CREATE_AT_FORMAT = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss");

@Column(name = "fcm_topic")
private String value;
Expand All @@ -28,6 +30,6 @@ public FcmTopic(String rawValue) {
private static String build(Meeting meeting) {
return meeting.getId().toString()
+ TOPIC_NAME_DELIMITER
+ meeting.getCreatedAt();
+ meeting.getCreatedAt().format(MEETING_CREATE_AT_FORMAT);
}
}
Loading