1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

use metadata constants

This commit is contained in:
Damodar Lohani 2022-10-14 11:07:07 +00:00
parent 0316710ee4
commit dee4f5c517

View file

@ -229,7 +229,7 @@ abstract class Worker
throw new \Exception("Project does not exist: {$projectId}");
}
if ($type === self::DATABASE_CONSOLE && !$database->exists($database->getDefaultDatabase(), '_metadata')) {
if ($type === self::DATABASE_CONSOLE && !$database->exists($database->getDefaultDatabase(), Database::METADATA)) {
throw new \Exception('Console project not ready');
}