mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-10 17:02:54 +01:00
Create updateAccountFeedsWithItems which will replace FeedlyUpdateAccountFeedsWithItemsOperation.
This commit is contained in:
parent
8e3c0b3683
commit
758aa62f61
@ -617,7 +617,7 @@ final class FeedlyAccountDelegate: AccountDelegate {
|
||||
func fetchUpdatedArticleIDs(newerThan date: Date) async throws -> Set<String> {
|
||||
|
||||
// To replace FeedlyGetUpdatedArticleIDsOperation
|
||||
|
||||
|
||||
guard let userID = credentials?.username else { return Set<String>() }
|
||||
|
||||
var articleIDs = Set<String>()
|
||||
@ -640,6 +640,14 @@ final class FeedlyAccountDelegate: AccountDelegate {
|
||||
return articleIDs
|
||||
}
|
||||
|
||||
func updateAccountFeedsWithItems(account: Account, feedIDsAndItems: [String: Set<ParsedItem>]) async throws {
|
||||
|
||||
// To replace FeedlyUpdateAccountFeedsWithItemsOperation
|
||||
|
||||
try await account.update(feedIDsAndItems: feedIDsAndItems, defaultRead: true)
|
||||
os_log(.debug, log: self.log, "Updated %i feeds", feedIDsAndItems.count)
|
||||
}
|
||||
|
||||
// MARK: Suspend and Resume (for iOS)
|
||||
|
||||
/// Suspend all network activity
|
||||
|
Loading…
Reference in New Issue
Block a user