Skip to content

Commit

Permalink
Merge branch 'fix-no-invalid-keys' of github.com:utopia-php/database …
Browse files Browse the repository at this point in the history
…into fix-no-invalid-keys
  • Loading branch information
abnegate committed Aug 21, 2023
1 parent 0cef265 commit 9eca9b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -2923,7 +2923,6 @@ public function updateDocument(string $collection, string $id, Document $documen
$document = \array_merge($old->getArrayCopy(), $document->getArrayCopy());
$document['$collection'] = $old->getAttribute('$collection'); // Make sure user doesn't switch collectionID
$document['$createdAt'] = $old->getCreatedAt(); // Make sure user doesn't switch createdAt
$document['$id'] = $old->getId();
$document = new Document($document);

$collection = $this->silent(fn () => $this->getCollection($collection));
Expand Down

0 comments on commit 9eca9b5

Please sign in to comment.