mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
create a cloud task to fetch rss feed item for the new subscription
This commit is contained in:
parent
11ebde2988
commit
35c074e647
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ import {
|
|||
import { getSubscribeHandler, unsubscribe } from '../../services/subscriptions'
|
||||
import { Merge } from '../../util'
|
||||
import { analytics } from '../../utils/analytics'
|
||||
import { enqueueRssFeedFetch } from '../../utils/createTask'
|
||||
import { authorized } from '../../utils/helpers'
|
||||
|
||||
type PartialSubscription = Omit<Subscription, 'newsletterEmail'>
|
||||
|
|
@ -242,6 +243,9 @@ export const subscribeResolver = authorized<
|
|||
icon: feed.image?.url,
|
||||
})
|
||||
|
||||
// create a cloud task to fetch rss feed item for the new subscription
|
||||
await enqueueRssFeedFetch(newSubscription)
|
||||
|
||||
return {
|
||||
subscriptions: [newSubscription],
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue