fix(admin): Own pushkeys before deleting all of a user's pushers

This commit is contained in:
Erwan Leboucher authored and Ellis Git committed 2026-08-27 15:36:43 +00:00
1 parent 5cf0a5b376
commit 4dc7e06c90
6 files changed
+7 -8

No files matched your search

+1 -2
View File
@@ -298,7 +298,6 @@ pub(crate) async fn logout_route(
services
.pusher
.get_pushkeys(sender_user)
.map(ToOwned::to_owned)
.broad_filter_map(async |pushkey| {
services
.pusher
@@ -345,7 +344,7 @@ pub(crate) async fn logout_all_route(
.pusher
.get_pushkeys(sender_user)
.for_each(async |pushkey| {
services.pusher.delete_pusher(sender_user, pushkey).await;
services.pusher.delete_pusher(sender_user, &pushkey).await;
})
.await;