|
|
@@ -1192,7 +1192,7 @@ final class BaseAPSManager: APSManager, Injectable {
|
|
|
|
|
|
storage.transaction { storage in
|
|
|
storage.append(dailystat, to: file, uniqBy: \.createdAt)
|
|
|
- var xduniqeEvents: [Statistics] = storage.retrieve(file, as: [Statistics].self)?
|
|
|
+ var uniqeEvents: [Statistics] = storage.retrieve(file, as: [Statistics].self)?
|
|
|
.filter { $0.createdAt.addingTimeInterval(24.hours.timeInterval) > Date() }
|
|
|
.sorted { $0.createdAt > $1.createdAt } ?? []
|
|
|
|