1
0
Fork 0
mirror of synced 2024-06-18 18:54:55 +12:00

use metadata constant

This commit is contained in:
Damodar Lohani 2022-10-14 11:26:33 +00:00
parent e2555e2448
commit 51cbc653af

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');
}