Fix account deletion deleting incorrect report threads (#6465)

This commit is contained in:
aecsocket
2026-06-22 14:27:31 +00:00
committed by GitHub
parent d7917048d5
commit 0a0ef1ce81
2 changed files with 3 additions and 3 deletions
@@ -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"
}