From d2b8d3ae7a324aaf6a6e33552ae218b757c1f2a4 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Wed, 7 Aug 2024 14:24:52 -0400 Subject: [PATCH] chore: finishing merge --- app/worker.php | 2 +- src/Appwrite/Auth/Validator/MockNumber.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;