File tree 1 file changed +9
-8
lines changed 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,15 @@ const postService = {
119
119
const serialized = posts . map ( p => this . serialize ( p ) ) ;
120
120
return serialized ;
121
121
} 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 } [ ] ;
130
131
const ids = result . map ( r => r . fk_post_id ) ;
131
132
const posts = await db . post . findMany ( {
132
133
where : {
You can’t perform that action at this time.
0 commit comments