Skip to content

Commit

Permalink
FIXME: Add debug output
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 24, 2024
1 parent d8b6226 commit 5dc7f5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/user_status/lib/Service/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -527,13 +527,15 @@ public function revertUserStatus(string $userId, string $messageId, bool $revert
/** @var UserStatus $userStatus */
$backupUserStatus = $this->mapper->findByUserId($userId, true);
} catch (DoesNotExistException $ex) {
var_dump('DoesNotExistException');
// No user status to revert, do nothing
return null;
}

$deleted = $this->mapper->deleteCurrentStatusToRestoreBackup($userId, $messageId);
if (!$deleted) {
// Another status is set automatically or no status, do nothing
var_dump('Delete failed');
return null;
}

Expand Down

0 comments on commit 5dc7f5d

Please sign in to comment.