From cace53fd980788d48df61a272e623fed32cd6cf5 Mon Sep 17 00:00:00 2001 From: Xeu Date: Wed, 4 Dec 2024 01:58:34 +0800 Subject: [PATCH] chore: simplify sql3 Signed-off-by: Xeu --- server/src/services/feed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/services/feed.ts b/server/src/services/feed.ts index 3e64a84c..031a939b 100644 --- a/server/src/services/feed.ts +++ b/server/src/services/feed.ts @@ -329,7 +329,7 @@ export function FeedService() { like(feeds.summary, searchKeyword), like(feeds.alias, searchKeyword)); const feed_list = (await cache.getOrSet(cacheKey, () => db.query.feeds.findMany({ - where: and(where, eq(feeds.draft, 0)), + where: admin ? where : and(where, eq(feeds.draft, 0)), columns: admin ? undefined : { draft: false, listed: false