Fix user deletion with new notification_deliveries table (#4437)

This commit is contained in:
Emma Alexia
2025-09-29 14:04:22 -04:00
committed by GitHub
parent 7eace32d93
commit 324ad65d7c
2 changed files with 24 additions and 0 deletions

View File

@@ -579,6 +579,16 @@ impl DBUser {
.execute(&mut **transaction)
.await?;
sqlx::query!(
"
DELETE FROM notifications_deliveries
WHERE notification_id = ANY($1)
",
&notifications
)
.execute(&mut **transaction)
.await?;
let user_collections = sqlx::query!(
"
SELECT id