Skip to content

Commit f12e249

Browse files
committed
refactor : 만료시간 설정
1 parent 277aee1 commit f12e249

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/main/java/com/api/tokbaro/domain/apns/service/ApnsServiceImpl.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import org.springframework.stereotype.Service;
1515

1616
import java.time.Instant;
17+
import java.time.temporal.ChronoUnit;
1718
import java.util.HashMap;
1819
import java.util.Map;
1920
import java.util.UUID;
@@ -142,7 +143,7 @@ public String getTopic() {
142143
@Override
143144
public Instant getExpiration() {
144145
// 만료 시간을 null로 명시적으로 반환
145-
return null;
146+
return Instant.now().plus(10, ChronoUnit.MINUTES);
146147
}
147148

148149
@Override

0 commit comments

Comments
 (0)