Skip to content

Commit

Permalink
Collections add $createdAt $updatedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Sep 5, 2024
1 parent f8a3a3b commit b39b67a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Migration/Destinations/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ protected function createCollection(Collection $resource): bool
'enabled' => true,
'name' => $resource->getCollectionName(),
'search' => implode(' ', [$resource->getId(), $resource->getCollectionName()]),
'$createdAt' => $resource->getCreatedAt(),
'$updatedAt' => $resource->getUpdatedAt(),
]));

$resource->setInternalId($collection->getInternalId());
Expand Down

0 comments on commit b39b67a

Please sign in to comment.