mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix sending rss feed to inbox folder
This commit is contained in:
parent
1f00050666
commit
15dc05ca1a
1 changed files with 10 additions and 3 deletions
|
|
@ -1,6 +1,9 @@
|
|||
/* eslint-disable @typescript-eslint/no-misused-promises */
|
||||
import express from 'express'
|
||||
import { Subscription } from '../../entity/subscription'
|
||||
import {
|
||||
DEFAULT_SUBSCRIPTION_FOLDER,
|
||||
Subscription,
|
||||
} from '../../entity/subscription'
|
||||
import { SubscriptionStatus, SubscriptionType } from '../../generated/graphql'
|
||||
import { readPushSubscription } from '../../pubsub'
|
||||
import { getRepository } from '../../repository'
|
||||
|
|
@ -36,7 +39,7 @@ export function rssFeedRouter() {
|
|||
ARRAY_AGG(coalesce(scheduled_at, NOW())) AS "scheduledDates",
|
||||
ARRAY_AGG(last_fetched_checksum) AS checksums,
|
||||
ARRAY_AGG(fetch_content) AS "fetchContents",
|
||||
ARRAY_AGG(folder) AS folders
|
||||
ARRAY_AGG(coalesce(folder, $3)) AS folders
|
||||
FROM
|
||||
omnivore.subscriptions
|
||||
WHERE
|
||||
|
|
@ -46,7 +49,11 @@ export function rssFeedRouter() {
|
|||
GROUP BY
|
||||
url
|
||||
`,
|
||||
[SubscriptionType.Rss, SubscriptionStatus.Active]
|
||||
[
|
||||
SubscriptionType.Rss,
|
||||
SubscriptionStatus.Active,
|
||||
DEFAULT_SUBSCRIPTION_FOLDER,
|
||||
]
|
||||
)) as RssSubscriptionGroup[]
|
||||
|
||||
// create a cloud taks to fetch rss feed item for each subscription
|
||||
|
|
|
|||
Loading…
Reference in a new issue