Create updateAccountFeedsWithItems which will replace FeedlyUpdateAccountFeedsWithItemsOperation.

This commit is contained in:
Brent Simmons 2024-04-26 08:02:53 -07:00
parent 8e3c0b3683
commit 758aa62f61

View File

@ -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