check is_fetching_content and only fetch content if required for rss feed items

This commit is contained in:
Hongbo Wu
2023-11-03 16:26:03 +08:00
parent 679512c9d1
commit 9b0b378c39
9 changed files with 50 additions and 3 deletions

View File

@ -615,6 +615,7 @@ export interface RssSubscriptionGroup {
fetchedDates: (Date | null)[]
scheduledDates: Date[]
checksums: (string | null)[]
isFetchingContents: boolean[]
}
export const enqueueRssFeedFetch = async (
@ -632,6 +633,7 @@ export const enqueueRssFeedFetch = async (
timestamp.getTime()
), // unix timestamp in milliseconds
userIds: subscriptionGroup.userIds,
isFetchingContents: subscriptionGroup.isFetchingContents,
}
// If there is no Google Cloud Project Id exposed, it means that we are in local environment