Skip to content

Commit

Permalink
chore: simplify sql3
Browse files Browse the repository at this point in the history
Signed-off-by: Xeu <thankrain@qq.com>
  • Loading branch information
OXeu committed Dec 3, 2024
1 parent 6ee987d commit cace53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/services/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cace53f

Please sign in to comment.