Skip to content

Commit

Permalink
修复相关文章计数的 sql 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
veoco committed Jan 30, 2023
1 parent cc7ee70 commit 3693d6a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,6 @@ pub async fn get_meta_posts_count_by_mid_with_private(
FROM {contents_table}
JOIN {relationships_table} ON {contents_table}.cid = {relationships_table}.cid
WHERE "type" = 'post' AND "mid" = $1{private_sql}
GROUP BY {contents_table}.cid
"#,
contents_table = &state.contents_table,
relationships_table = &state.relationships_table
Expand All @@ -884,7 +883,6 @@ pub async fn get_meta_posts_count_by_mid_with_private(
FROM {contents_table}
JOIN {relationships_table} ON {contents_table}.cid = {relationships_table}.cid
WHERE `type` = 'post' AND `mid` = ?{private_sql}
GROUP BY {contents_table}.cid
"#,
contents_table = &state.contents_table,
relationships_table = &state.relationships_table
Expand All @@ -895,7 +893,6 @@ pub async fn get_meta_posts_count_by_mid_with_private(
FROM {contents_table}
JOIN {relationships_table} ON {contents_table}.cid = {relationships_table}.cid
WHERE "type" = 'post' AND "mid" = ?{private_sql}
GROUP BY {contents_table}.cid
"#,
contents_table = &state.contents_table,
relationships_table = &state.relationships_table
Expand Down

0 comments on commit 3693d6a

Please sign in to comment.