diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 91e7f87113..172ded7f31 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -27,7 +27,6 @@ use Utopia\Database\Document; use Utopia\Database\Helpers\Role; use Utopia\Database\Validator\Authorization; use Utopia\Logger\Log\User; -use Utopia\Logger\Logger; use Utopia\System\System; use Utopia\Validator\WhiteList; @@ -757,8 +756,8 @@ App::error() } if ($error->getCode() >= 400 && $error->getCode() < 500) { - $publish = true; - } + $publish = true; + } if ($publish && $project->getId() !== 'console') { if (!Auth::isPrivilegedUser(Authorization::getRoles())) {