mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Set dirty property instead of in registry from shutdown
This commit is contained in:
3 files changed
+9
-5
No files matched your search
@@ -16,7 +16,7 @@ use Utopia\Route;
|
||||
class Schema
|
||||
{
|
||||
protected static ?GQLSchema $schema = null;
|
||||
protected static bool $dirty = false;
|
||||
protected static array $dirty = [];
|
||||
|
||||
/**
|
||||
* @throws \Exception
|
||||
@@ -30,7 +30,7 @@ class Schema
|
||||
return $utopia;
|
||||
});
|
||||
|
||||
if (!self::$dirty && self::$schema) {
|
||||
if (!empty(self::$schema)) {
|
||||
return self::$schema;
|
||||
}
|
||||
|
||||
@@ -250,4 +250,9 @@ class Schema
|
||||
'mutation' => $mutationFields
|
||||
];
|
||||
}
|
||||
|
||||
public static function setDirty(string $projectId): void
|
||||
{
|
||||
self::$dirty[$projectId] = true;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user