diff --git a/app/worker.php b/app/worker.php index 3ce0281fe7..9fc75b2a61 100644 --- a/app/worker.php +++ b/app/worker.php @@ -115,7 +115,7 @@ if (!isset($args[1])) { $workerName = $args[0]; if (\str_starts_with($workerName, 'databases')) { - $queueName = System::getEnv('_APP_QUEUE_NAME', 'db_main'); + $queueName = System::getEnv('_APP_QUEUE_NAME', 'database_db_main'); } else { $queueName = System::getEnv('_APP_QUEUE_NAME', 'v1-' . strtolower($workerName)); } diff --git a/src/Appwrite/Auth/Validator/MockNumber.php b/src/Appwrite/Auth/Validator/MockNumber.php index 900f1ba215..af976f77f8 100644 --- a/src/Appwrite/Auth/Validator/MockNumber.php +++ b/src/Appwrite/Auth/Validator/MockNumber.php @@ -45,7 +45,7 @@ class MockNumber extends Validator return false; } - $otp = new Validator\Text(6, 6, Text::NUMBERS); + $otp = new Validator\Text(6, 6, Validator\Text::NUMBERS); if (!$otp->isValid($value['otp'])) { $this->message = 'Invalid OTP. Please make sure the OTP is a 6 digit number'; return false;