1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

feat: replace strings with constant

This commit is contained in:
Christy Jacob 2022-01-31 13:46:24 +04:00
parent 951a3a4dd1
commit fa006e9963
2 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@
use Ahc\Jwt\JWT;
use Appwrite\Auth\Auth;
use Appwrite\Database\Validator\CustomId;
use Appwrite\Event\Event;
use Utopia\Database\Validator\UID;
use Utopia\Storage\Storage;
use Utopia\Storage\Validator\File;
@ -580,7 +581,7 @@ App::post('/v1/functions/:functionId/deployments')
]));
// Enqueue a message to start the build
Resque::enqueue('v1-builds', 'BuildsV1', [
Resque::enqueue(Event::BUILDS_QUEUE_NAME, Event::BUILDS_CLASS_NAME, [
'projectId' => $project->getId(),
'functionId' => $function->getId(),
'deploymentId' => $deploymentId,
@ -1121,7 +1122,7 @@ App::post('/v1/builds/:buildId')
}
// Enqueue a message to start the build
Resque::enqueue('v1-builds', 'BuildsV1', [
Resque::enqueue(Event::BUILDS_QUEUE_NAME, Event::BUILDS_CLASS_NAME, [
'projectId' => $project->getId(),
'buildId' => $buildId,
'type' => BUILD_TYPE_RETRY

View file

@ -30,6 +30,9 @@ class Event
const CERTIFICATES_QUEUE_NAME = 'v1-certificates';
const CERTIFICATES_CLASS_NAME = 'CertificatesV1';
const BUILDS_QUEUE_NAME = 'v1-builds';
const BUILDS_CLASS_NAME = 'BuildsV1';
/**
* @var string