mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 00:55:25 +00:00
Fix account deletion deleting incorrect report threads (#6465)
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"db_name": "PostgreSQL",
|
||||
"query": "\n SELECT t.id\n FROM threads t\n INNER JOIN reports r ON t.report_id = r.id AND (r.user_id = $1 OR r.reporter = $1)\n WHERE report_id IS NOT NULL\n ",
|
||||
"query": "\n SELECT t.id\n FROM threads t\n INNER JOIN reports r ON t.report_id = r.id AND r.reporter = $1\n WHERE report_id IS NOT NULL\n ",
|
||||
"describe": {
|
||||
"columns": [
|
||||
{
|
||||
@@ -18,5 +18,5 @@
|
||||
false
|
||||
]
|
||||
},
|
||||
"hash": "531e556fa37da6b74aab2e539bcc13b66ced32452152f20e8fa5df4b3d14f292"
|
||||
"hash": "af770d434cbfc6bb73239a8af03f5cde101fa7cfd35f550973a77bb40e46cfe1"
|
||||
}
|
||||
@@ -719,7 +719,7 @@ impl DBUser {
|
||||
"
|
||||
SELECT t.id
|
||||
FROM threads t
|
||||
INNER JOIN reports r ON t.report_id = r.id AND (r.user_id = $1 OR r.reporter = $1)
|
||||
INNER JOIN reports r ON t.report_id = r.id AND r.reporter = $1
|
||||
WHERE report_id IS NOT NULL
|
||||
",
|
||||
id as DBUserId,
|
||||
|
||||
Reference in New Issue
Block a user