Skip to content

Commit

Permalink
Merge pull request #43 from utopia-php/fix-missing-enabled-attribute
Browse files Browse the repository at this point in the history
fix: using enabled addtribute
  • Loading branch information
TorstenDittmann authored Oct 2, 2024
2 parents d7d3e2e + 8f8af1a commit e43ef28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Migration/Destinations/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ protected function createDatabase(Database $resource): bool
$database = $this->database->createDocument('databases', new UtopiaDocument([
'$id' => $resource->getId(),
'name' => $resource->getDatabaseName(),
'enabled' => true,
'enabled' => $resource->getEnabled(),
'search' => implode(' ', [$resource->getId(), $resource->getDatabaseName()]),
'$createdAt' => $resource->getCreatedAt(),
'$updatedAt' => $resource->getUpdatedAt(),
Expand Down Expand Up @@ -375,7 +375,7 @@ protected function createCollection(Collection $resource): bool
'databaseId' => $resource->getDatabase()->getId(),
'$permissions' => Permission::aggregate($resource->getPermissions()),
'documentSecurity' => $resource->getDocumentSecurity(),
'enabled' => true,
'enabled' => $resource->getEnabled(),
'name' => $resource->getCollectionName(),
'search' => implode(' ', [$resource->getId(), $resource->getCollectionName()]),
'$createdAt' => $resource->getCreatedAt(),
Expand Down

0 comments on commit e43ef28

Please sign in to comment.