Store the last article fetch when articles were successfully fetched.
This commit is contained in:
parent
63a42042db
commit
c87f8c974a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue