mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Fix update/upsert set collection ID
This commit is contained in:
parent
c323435dad
commit
8e900c6b04
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue