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
@@ -59,7 +59,7 @@ pub(super) async fn process(subcommand: PusherCommand, context: &Context<'_>) ->
pushers
.stream()
.for_each(async |pushkey| {
services.pusher.delete_pusher(&user_id, pushkey).await;
services.pusher.delete_pusher(&user_id, &pushkey).await;
})
.await;
write!(context, "Deleted {pusher_count} pushers for {user_id}.")
@@ -68,7 +68,6 @@ pub(super) async fn process(subcommand: PusherCommand, context: &Context<'_>) ->
let pushers = services
.pusher
.get_pushkeys(&user_id)
.map(ToOwned::to_owned)
.broad_filter_map(async |pushkey| {
services
.pusher