Fix defualts for bulk op add

This commit is contained in:
Jake Barnby 2025-08-15 01:32:21 +12:00
parent ad8cebc6e3
commit 46f8d76d7a
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -94,9 +94,9 @@ class Create extends Action
'databaseInternalId' => $database->getSequence(),
'collectionInternalId' => $collection->getSequence(),
'transactionInternalId' => $transaction->getSequence(),
'documentId' => $operation['documentId'] ?? ID::unique(),
'documentId' => $operation['documentId'] ?? null,
'action' => $operation['action'],
'data' => $operation['data'] ?? new \stdClass(),
'data' => $operation['data'] ?? [],
]);
}