mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
* fix(dynamodb): return attributes for UPDATED_NEW/UPDATED_OLD on new items When UpdateItem creates a new item, oldItem is null. The UPDATED_NEW branch required oldItem != null, so no attributes were returned. Handle null oldItem by returning all newItem attributes (everything is new). Same fix for UPDATED_OLD with null newItem. Closes #537 * fix: exclude key attributes from UPDATED_NEW, remove dead UPDATED_OLD branch - Diff newItem against the request key when oldItem is null, so key attributes are excluded from UPDATED_NEW (matches AWS behavior) - Remove unreachable UPDATED_OLD else branch (newItem is never null) - Assert key attributes are absent in the new-item test