mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add lastFetchedAt to the cloud task payload
This commit is contained in:
parent
eb9a3eddd0
commit
c500997693
2 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export function rssFeedRouter() {
|
|||
try {
|
||||
// get all active rss feed subscriptions
|
||||
const subscriptions = await getRepository(Subscription).find({
|
||||
select: ['id', 'url', 'user'],
|
||||
select: ['id', 'url', 'user', 'lastFetchedAt'],
|
||||
where: {
|
||||
type: SubscriptionType.Rss,
|
||||
status: SubscriptionStatus.Active,
|
||||
|
|
|
|||
|
|
@ -568,6 +568,7 @@ export const enqueueRssFeedFetch = async (
|
|||
subscriptionId: rssFeedSubscription.id,
|
||||
userId: rssFeedSubscription.user.id,
|
||||
feedUrl: rssFeedSubscription.url,
|
||||
lastFetchedAt: rssFeedSubscription.lastFetchedAt,
|
||||
}
|
||||
|
||||
const createdTasks = await createHttpTaskWithToken({
|
||||
|
|
|
|||
Loading…
Reference in a new issue