diff options
author | Joas Schilling <coding@schilljs.com> | 2022-02-10 17:50:09 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-15 18:06:32 +0300 |
commit | c5d11abff9b46cfee186f68f1d9ee575db41ce5e (patch) | |
tree | d3fdcdddb9a11f0dbe06976e515f9b233baf8f48 /apps/user_status | |
parent | ba7a31d73b34c622ed74e6aed8c1695327c2d574 (diff) |
Directly delete the user status instead of getting it a second time
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status')
-rw-r--r-- | apps/user_status/lib/Service/StatusService.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |