allow setting fetchContent and folder when subscribe to a feed

This commit is contained in:
Hongbo Wu
2023-12-14 16:32:48 +08:00
parent d67b974367
commit f2c468f906
5 changed files with 80 additions and 13 deletions

View File

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