Fix reports sometimes being broken on the mod dashboard (#717)

This commit is contained in:
Emma Alexia Triphora
2023-09-24 09:04:18 -04:00
committed by GitHub
parent 3380f4d11c
commit 5cab618bf7
2 changed files with 13 additions and 13 deletions

View File

@@ -488,7 +488,7 @@ impl User {
sqlx::query!(
"
DELETE FROM reports
WHERE user_id = $1
WHERE user_id = $1 OR reporter = $1
",
id as UserId,
)