Fix update/upsert set collection ID

This commit is contained in:
Jake Barnby 2025-08-19 23:01:22 +12:00
parent c323435dad
commit 8e900c6b04
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C
2 changed files with 2 additions and 2 deletions

View file

@ -152,7 +152,7 @@ class Update extends Action
foreach ($documents as $document) {
$document->setAttribute('$databaseId', $database->getId());
$document->setAttribute('$collectionId', $collection->getId());
$document->setAttribute('$'.$this->getCollectionsEventsContext().'Id', $collection->getId());
}
$queueForStatsUsage

View file

@ -129,7 +129,7 @@ class Upsert extends Action
foreach ($upserted as $document) {
$document->setAttribute('$databaseId', $database->getId());
$document->setAttribute('$collectionId', $collection->getId());
$document->setAttribute('$'.$this->getCollectionsEventsContext().'Id', $collection->getId());
}
$queueForStatsUsage