Fix repost counter update query in delete_profile()

This commit is contained in:
silverpill 2021-12-04 01:27:47 +00:00
parent d33899f56e
commit c2d070c4fe

View file

@ -283,7 +283,7 @@ pub async fn delete_profile(
transaction.execute( transaction.execute(
" "
UPDATE post UPDATE post
SET repost_count = repost_count - 1 SET repost_count = post.repost_count - 1
FROM post AS repost FROM post AS repost
WHERE WHERE
repost.repost_of_id = post.id repost.repost_of_id = post.id