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

Code quality improvement

This commit is contained in:
Matej Bačo 2022-04-27 13:20:08 +00:00
parent 933f3372fe
commit 911aefaa7a

View file

@ -18,6 +18,9 @@ use Utopia\Audit\Audit;
require_once __DIR__ . '/../init.php';
Authorization::disable();
Authorization::setDefaultStatus(false);
Console::title('Deletes V1 Worker');
Console::success(APP_NAME . ' deletes worker v1 has started' . "\n");
@ -38,7 +41,6 @@ class DeletesV1 extends Worker
public function run(): void
{
Authorization::disable();
$projectId = $this->args['projectId'] ?? '';
$type = $this->args['type'] ?? '';
@ -113,8 +115,6 @@ class DeletesV1 extends Worker
Console::error('No delete operation for type: ' . $type);
break;
}
Authorization::reset();
}
public function shutdown(): void