diff --git a/.well-known/funding-manifest-urls b/.well-known/funding-manifest-urls new file mode 100644 index 0000000..5153418 --- /dev/null +++ b/.well-known/funding-manifest-urls @@ -0,0 +1 @@ +https://bewcloud.com/funding.json diff --git a/crons/news.ts b/crons/news.ts index 2a25a3b..e2d2a43 100644 --- a/crons/news.ts +++ b/crons/news.ts @@ -52,7 +52,7 @@ export async function cleanupOldArticles() { const result = await db.query<{ count: number }>( sql`WITH "deleted" AS ( - DELETE FROM "bewcloud_news_feed_articles" WHERE "is_read" = TRUE AND "article_date" <= $1 AND "feed_id" != ANY($2) RETURNING * + DELETE FROM "bewcloud_news_feed_articles" WHERE "is_read" = TRUE AND "article_date" <= $1 AND NOT ("feed_id" != ANY($2)) RETURNING * ) SELECT COUNT(*) FROM "deleted"`, [