Skip to content

Commit ce432f5

Browse files
committed
fix mis-calculation of a time interval
Fix calculation of one day in seconds. This bug had no side effects except keeping old irrelevant data too long.
1 parent b1e43da commit ce432f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalLiveActivities/Source/Executors/OSLiveActivitiesExecutor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class RequestCache {
9898

9999
class UpdateRequestCache: RequestCache {
100100
// An update token should not last longer than 8 hours, we keep for 24 hours to be safe.
101-
static let OneDayInSeconds = TimeInterval(60 * 60 * 24 * 365)
101+
static let OneDayInSeconds = TimeInterval(60 * 60 * 24)
102102

103103
init() {
104104
super.init(cacheKey: OS_LIVE_ACTIVITIES_EXECUTOR_UPDATE_TOKENS_KEY, ttl: UpdateRequestCache.OneDayInSeconds)

0 commit comments

Comments
 (0)