@moicky/dynamodb 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -173,9 +173,10 @@ class Transaction {
|
|
|
173
173
|
}
|
|
174
174
|
this.hasBeenExecuted = true;
|
|
175
175
|
const operations = Object.values(this.operations);
|
|
176
|
-
if (operations.length === 0
|
|
177
|
-
(
|
|
178
|
-
|
|
176
|
+
if (operations.length === 0)
|
|
177
|
+
return resolve({});
|
|
178
|
+
if (operations.length > OPERATIONS_LIMIT &&
|
|
179
|
+
!this.shouldSplitTransactions) {
|
|
179
180
|
reject(new Error("[@moicky/dynamodb]: Invalid number of operations"));
|
|
180
181
|
}
|
|
181
182
|
const conditionCheckItems = operations
|