Commit ce03ecf
Fix issue when using batch operations on different classes with the same table name (awslabs#159)
* Fix itemIdentifier function
itemIdentifier function always returned ":" as no items were pushed to the keyAttributes array.
This caused problems with batch operations of different models using the same tableName.1 parent e2ef398 commit ce03ecf
File tree
2 files changed
+12
-7
lines changed- packages/dynamodb-data-mapper/src
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
440 | 441 | | |
441 | 442 | | |
442 | | - | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
| 451 | + | |
450 | 452 | | |
451 | | - | |
| 453 | + | |
452 | 454 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
457 | 462 | | |
458 | 463 | | |
459 | 464 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1339 | 1339 | | |
1340 | 1340 | | |
1341 | 1341 | | |
1342 | | - | |
| 1342 | + | |
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
| |||
0 commit comments