mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #2567 from omnivore-app/feature/increase-rss-limit
increase the max number of rss subscriptions to 50
This commit is contained in:
commit
9059deaef9
1 changed files with 2 additions and 2 deletions
|
|
@ -235,12 +235,12 @@ export const subscribeResolver = authorized<
|
|||
// validate rss feed
|
||||
const feed = await parser.parseURL(input.url)
|
||||
|
||||
// limit number of rss subscriptions to 20
|
||||
// limit number of rss subscriptions to 50
|
||||
const newSubscriptions = (await AppDataSource.query(
|
||||
`insert into omnivore.subscriptions (name, url, description, type, user_id, icon)
|
||||
select $1, $2, $3, $4, $5, $6 from omnivore.subscriptions
|
||||
where user_id = $5 and type = 'RSS' and status = 'ACTIVE'
|
||||
having count(*) < 20
|
||||
having count(*) < 50
|
||||
returning *;`,
|
||||
[
|
||||
feed.title,
|
||||
|
|
|
|||
Loading…
Reference in a new issue