From 00e7e49a4b9b018d0e13988e18e40e6b49fcb425 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 31 Jul 2023 21:44:50 +0800 Subject: [PATCH] increase the max number of rss subscriptions to 50 --- packages/api/src/resolvers/subscriptions/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/resolvers/subscriptions/index.ts b/packages/api/src/resolvers/subscriptions/index.ts index a74c49a81..fcb1e2d96 100644 --- a/packages/api/src/resolvers/subscriptions/index.ts +++ b/packages/api/src/resolvers/subscriptions/index.ts @@ -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,