diff --git a/README-CN.md b/README-CN.md index eaada5a34b..3f10f862c2 100644 --- a/README-CN.md +++ b/README-CN.md @@ -21,6 +21,8 @@ [English](README.md) | 简体中文 +[**我们发布了 Appwrite 1.0 版本!**](https://appwrite.io/1.0) + Appwrite是一个基于Docker的端到端开发者平台,其容器化的微服务库可应用于网页端,移动端,以及后端。Appwrite 通过视觉化界面极简了从零编写 API 的繁琐过程,在保证软件安全的前提下为开发者创造了一个高效的开发环境。 Appwrite 可以提供给开发者用户验证,外部授权,用户数据读写检索,文件储存,图像处理,云函数计算,[等多种服务](https://appwrite.io/docs). diff --git a/app/controllers/general.php b/app/controllers/general.php index 4d9bb0f473..201455a4d3 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -403,11 +403,6 @@ App::error() $version = App::getEnv('_APP_VERSION', 'UNKNOWN'); $route = $utopia->match($request); - /** Delegate PDO exceptions to the global handler so the database connection can be returned to the pool */ - if ($error instanceof PDOException) { - throw $error; - } - if ($logger) { if ($error->getCode() >= 500 || $error->getCode() === 0) { try { diff --git a/app/http.php b/app/http.php index fe0778bb15..4d15cab303 100644 --- a/app/http.php +++ b/app/http.php @@ -317,13 +317,6 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo Console::error('[Error] File: ' . $th->getFile()); Console::error('[Error] Line: ' . $th->getLine()); - /** - * Reset Database connection if PDOException was thrown. - */ - if ($th instanceof PDOException) { - $db = null; - } - $swooleResponse->setStatusCode(500); $output = ((App::isDevelopment())) ? [ diff --git a/app/workers/builds.php b/app/workers/builds.php index f31db88ab3..5f33ed4010 100644 --- a/app/workers/builds.php +++ b/app/workers/builds.php @@ -183,7 +183,6 @@ class BuildsV1 extends Worker /* Also update the deployment buildTime */ $deployment->setAttribute('buildTime', $response['duration']); - $deployment = $dbForProject->updateDocument('deployments', $deployment->getId(), $deployment); Console::success("Build id: $buildId created");