diff --git a/app/controllers/api/databases.php b/app/controllers/api/databases.php index 8c8dc2ca57..a9bb58df4b 100644 --- a/app/controllers/api/databases.php +++ b/app/controllers/api/databases.php @@ -205,7 +205,7 @@ function createAttribute(string $databaseId, string $collectionId, Document $att $dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId()); $dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId()); } - var_dump($queueForDatabase); + $queueForDatabase ->setType(DATABASE_TYPE_CREATE_ATTRIBUTE) ->setDatabase($db) diff --git a/src/Appwrite/Event/Database.php b/src/Appwrite/Event/Database.php index 9fe991a6dd..69c38e2ec5 100644 --- a/src/Appwrite/Event/Database.php +++ b/src/Appwrite/Event/Database.php @@ -109,8 +109,6 @@ class Database extends Event public function trigger(): string|bool { - var_dump('database='); - var_dump($this->getProject()->getAttribute('database')); try { $dsn = new DSN($this->getProject()->getAttribute('database')); @@ -119,9 +117,6 @@ class Database extends Event $dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database')); } - var_dump('$dsn->getHost()='); - var_dump($dsn->getHost()); - $this->setQueue($dsn->getHost()); $client = new Client($this->queue, $this->connection);