mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix(admin): Own pushkeys before deleting all of a user's pushers
This commit is contained in:
1 parent
5cf0a5b376
commit
4dc7e06c90
6 files changed
+7
-8
No files matched your search
@@ -145,7 +145,6 @@ pub(crate) async fn change_password_route(
|
||||
services
|
||||
.pusher
|
||||
.get_pushkeys(&sender_user)
|
||||
.map(ToOwned::to_owned)
|
||||
.broad_filter_map(async |pushkey| {
|
||||
services
|
||||
.pusher
|
||||
@@ -339,7 +338,7 @@ pub async fn full_user_deactivate(
|
||||
.pusher
|
||||
.get_pushkeys(user_id)
|
||||
.for_each(async |pushkey| {
|
||||
services.pusher.delete_pusher(user_id, pushkey).await;
|
||||
services.pusher.delete_pusher(user_id, &pushkey).await;
|
||||
})
|
||||
.await;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user