Store the last article fetch when articles were successfully fetched.

This commit is contained in:
Kiel Gillard 2019-11-11 17:42:14 +11:00
parent 63a42042db
commit c87f8c974a
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ final class FeedlyAccountDelegate: AccountDelegate {
let date = Date()
operation.syncCompletionHandler = { [weak self] result in
if case .success = result {
self?.accountMetadata?.lastArticleFetch = date
}
os_log(.debug, log: log, "Sync took %{public}.3f seconds", -date.timeIntervalSinceNow)
progress.completeTask()