Skip to content

Commit a58cd25

Browse files
authored
Update FMHelper.swift
1 parent f18d0fd commit a58cd25

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Shared/Helper/FMHelper.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,13 @@ class FMHelper {
101101
let endDate = now.dateFor(.yesterday).dateFor(.endOfDay)
102102

103103
return (startDate, endDate)
104-
default:
105-
return (nil, nil)
104+
105+
case .all:
106+
let startDate = Date(timeIntervalSince1970: 0)
107+
let endDate = Date.distantFuture
108+
109+
return (startDate, endDate)
110+
}
106111
}
107112
}
108113

0 commit comments

Comments
 (0)