Directly delete the user status instead of getting it a second time

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/31106/head
Joas Schilling 2022-02-10 15:50:09 +07:00
parent ba7a31d73b
commit c5d11abff9
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 1 additions and 1 deletions

@ -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
}