Skip to content

Commit 54264fc

Browse files
committed
fix: temporarily disable tag query
1 parent c8f6d25 commit 54264fc

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/services/postService.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,15 @@ const postService = {
119119
const serialized = posts.map(p => this.serialize(p));
120120
return serialized;
121121
} else {
122-
const result = await db.$queryRaw<
123-
{ fk_post_id: string }[]
124-
>`select pt.fk_post_id from posts_tags pt
125-
inner join posts on posts.id = pt.fk_post_id
126-
where pt.fk_tag_id = uuid(${originTag.id})
127-
and posts.is_temp = false and posts.is_private = false
128-
order by posts.released_at desc
129-
limit 20`;
122+
// const result = await db.$queryRaw<
123+
// { fk_post_id: string }[]
124+
// >`select pt.fk_post_id from posts_tags pt
125+
// inner join posts on posts.id = pt.fk_post_id
126+
// where pt.fk_tag_id = uuid(${originTag.id})
127+
// and posts.is_temp = false and posts.is_private = false
128+
// order by posts.released_at desc
129+
// limit 20`;
130+
const result = [] as { fk_post_id: string }[];
130131
const ids = result.map(r => r.fk_post_id);
131132
const posts = await db.post.findMany({
132133
where: {

0 commit comments

Comments
 (0)