Fix repost counter update query in delete_profile()
This commit is contained in:
parent
d33899f56e
commit
c2d070c4fe
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ pub async fn delete_profile(
|
|||
transaction.execute(
|
||||
"
|
||||
UPDATE post
|
||||
SET repost_count = repost_count - 1
|
||||
SET repost_count = post.repost_count - 1
|
||||
FROM post AS repost
|
||||
WHERE
|
||||
repost.repost_of_id = post.id
|
||||
|
|
Loading…
Reference in a new issue