Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 46c6ed1

Browse files
committed
Fixing key for filename.
1 parent 82749d1 commit 46c6ed1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

WordPressKit/Time Interval/StatsFileDownloadsTimeIntervalData.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ extension StatsFileDownloadsTimeIntervalData: StatsTimeIntervalData {
4949
}
5050

5151
let fileDownloads: [StatsFileDownload] = fileDownloadsDict.compactMap {
52-
// TODO: these keys are a total guess. Verify/update when the endpoint is actually live.
53-
guard let file = $0["file"] as? String, let downloads = $0["downloads"] as? Int else {
52+
guard let file = $0["filename"] as? String, let downloads = $0["downloads"] as? Int else {
5453
return nil
5554
}
5655

0 commit comments

Comments
 (0)