File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments