You've already forked AstralRinth
forked from didirus/AstralRinth
Fix user deletion with new notification_deliveries table (#4437)
This commit is contained in:
14
apps/labrinth/.sqlx/query-73c04dd1b08f2c738b8b818b986dbf0431915cd603e60eec6459ce0a84948616.json
generated
Normal file
14
apps/labrinth/.sqlx/query-73c04dd1b08f2c738b8b818b986dbf0431915cd603e60eec6459ce0a84948616.json
generated
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "\n DELETE FROM notifications_deliveries\n WHERE notification_id = ANY($1)\n ",
|
||||||
|
"describe": {
|
||||||
|
"columns": [],
|
||||||
|
"parameters": {
|
||||||
|
"Left": [
|
||||||
|
"Int8Array"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nullable": []
|
||||||
|
},
|
||||||
|
"hash": "73c04dd1b08f2c738b8b818b986dbf0431915cd603e60eec6459ce0a84948616"
|
||||||
|
}
|
||||||
@@ -579,6 +579,16 @@ impl DBUser {
|
|||||||
.execute(&mut **transaction)
|
.execute(&mut **transaction)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
sqlx::query!(
|
||||||
|
"
|
||||||
|
DELETE FROM notifications_deliveries
|
||||||
|
WHERE notification_id = ANY($1)
|
||||||
|
",
|
||||||
|
¬ifications
|
||||||
|
)
|
||||||
|
.execute(&mut **transaction)
|
||||||
|
.await?;
|
||||||
|
|
||||||
let user_collections = sqlx::query!(
|
let user_collections = sqlx::query!(
|
||||||
"
|
"
|
||||||
SELECT id
|
SELECT id
|
||||||
|
|||||||
Reference in New Issue
Block a user