From aab318023c213275dc36649bc9bd6544ca4af878 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 5 Jul 2019 22:46:02 -0700 Subject: [PATCH] Update ReaderAPI to use changed database fetch API. --- .../Account/ReaderAPI/ReaderAPIAccountDelegate.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Frameworks/Account/ReaderAPI/ReaderAPIAccountDelegate.swift b/Frameworks/Account/ReaderAPI/ReaderAPIAccountDelegate.swift index 6efba4115..da4e314fe 100644 --- a/Frameworks/Account/ReaderAPI/ReaderAPIAccountDelegate.swift +++ b/Frameworks/Account/ReaderAPI/ReaderAPIAccountDelegate.swift @@ -943,7 +943,7 @@ private extension ReaderAPIAccountDelegate { // Mark articles as unread let deltaUnreadArticleIDs = unreadArticleIDs.subtracting(currentUnreadArticleIDs) - let markUnreadArticles = account.fetchArticles(forArticleIDs: deltaUnreadArticleIDs) + let markUnreadArticles = account.fetchArticles(.articleIDs(deltaUnreadArticleIDs)) DispatchQueue.main.async { _ = account.update(markUnreadArticles, statusKey: .read, flag: false) } @@ -959,7 +959,7 @@ private extension ReaderAPIAccountDelegate { // Mark articles as read let deltaReadArticleIDs = currentUnreadArticleIDs.subtracting(unreadArticleIDs) - let markReadArticles = account.fetchArticles(forArticleIDs: deltaReadArticleIDs) + let markReadArticles = account.fetchArticles(.articleIDs(deltaReadArticleIDs)) DispatchQueue.main.async { _ = account.update(markReadArticles, statusKey: .read, flag: true) } @@ -986,7 +986,7 @@ private extension ReaderAPIAccountDelegate { // Mark articles as starred let deltaStarredArticleIDs = starredArticleIDs.subtracting(currentStarredArticleIDs) - let markStarredArticles = account.fetchArticles(forArticleIDs: deltaStarredArticleIDs) + let markStarredArticles = account.fetchArticles(.articleIDs(deltaStarredArticleIDs)) DispatchQueue.main.async { _ = account.update(markStarredArticles, statusKey: .starred, flag: true) } @@ -1002,7 +1002,7 @@ private extension ReaderAPIAccountDelegate { // Mark articles as unstarred let deltaUnstarredArticleIDs = currentStarredArticleIDs.subtracting(starredArticleIDs) - let markUnstarredArticles = account.fetchArticles(forArticleIDs: deltaUnstarredArticleIDs) + let markUnstarredArticles = account.fetchArticles(.articleIDs(deltaUnstarredArticleIDs)) DispatchQueue.main.async { _ = account.update(markUnstarredArticles, statusKey: .starred, flag: false) }