Skip to content

Commit

Permalink
Revert skipRelations
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Oct 7, 2024
1 parent aa64f70 commit 3127db5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Migration/Destinations/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,11 +902,10 @@ protected function createDocument(Document $resource, bool $isLast): bool
$databaseInternalId = $database->getInternalId();
$collectionInternalId = $collection->getInternalId();

$this->database->skipRelationships(fn () => $this->database
->createDocuments(
'database_' . $databaseInternalId . '_collection_' . $collectionInternalId,
$this->documentBuffer
));
$this->database->createDocuments(
'database_' . $databaseInternalId . '_collection_' . $collectionInternalId,
$this->documentBuffer
);

} finally {
$this->documentBuffer = [];
Expand Down

0 comments on commit 3127db5

Please sign in to comment.