diff --git a/app/http.php b/app/http.php index 6f72f81d47..63896015ab 100644 --- a/app/http.php +++ b/app/http.php @@ -27,7 +27,6 @@ global $global, $container; $payloadSize = 12 * (1024 * 1024); // 12MB - adding slight buffer for headers and other data that might be sent with the payload - update later with valid testing $workerNumber = swoole_cpu_num() * intval(System::getEnv('_APP_WORKER_PER_CORE', 2)); -Response\Models::init(); $server = new Server('0.0.0.0', '80', [ 'open_http2_protocol' => true, diff --git a/app/init2.php b/app/init2.php index ae67a6bb38..8a66302131 100644 --- a/app/init2.php +++ b/app/init2.php @@ -25,6 +25,7 @@ use Appwrite\Hooks\Hooks; use Appwrite\Network\Validator\Origin; use Appwrite\URL\URL; use Appwrite\Utopia\Queue\Connections; +use Appwrite\Utopia\Response\Models; use MaxMind\Db\Reader; use PHPMailer\PHPMailer\PHPMailer; use Swoole\Database\PDOConfig; @@ -1330,3 +1331,5 @@ $container->set($queueForMigrations); $container->set($deviceForFunctions); $container->set($passwordsDictionary); $container->set($queueForCertificates); + +Models::init();