From 72413eee47b672355102f17dc22c891743d2735c Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 10 Feb 2022 15:50:09 +0100 Subject: [PATCH] Directly delete the user status instead of getting it a second time Signed-off-by: Joas Schilling --- apps/user_status/lib/Service/StatusService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_status/lib/Service/StatusService.php b/apps/user_status/lib/Service/StatusService.php index ad50a541a00..1f72fd8a21b 100644 --- a/apps/user_status/lib/Service/StatusService.php +++ b/apps/user_status/lib/Service/StatusService.php @@ -474,7 +474,7 @@ class StatusService { // Another status is set automatically, do nothing return; } - $this->removeUserStatus($userId); + $this->mapper->delete($userStatus); } catch (DoesNotExistException $ex) { // No current status => nothing to delete } -- 2.39.5