Skip to content

Commit 79e2518

Browse files
committed
fix: Return all values
Signed-off-by: Javier Aliaga <[email protected]>
1 parent b7c0205 commit 79e2518

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

state/aws/dynamodb/dynamodb.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,12 @@ func (d *StateStore) Multi(ctx context.Context, request *state.TransactionalStat
479479
}
480480
twi.Put = pd.ToPut()
481481
if twi.Put.ConditionExpression != nil {
482-
twi.ConditionCheck.ReturnValuesOnConditionCheckFailure = types.ReturnValuesOnConditionCheckFailureAllOld
482+
twi.ConditionCheck = &types.ConditionCheck{
483+
Key: twi.Put.Item,
484+
ConditionExpression: twi.Put.ConditionExpression,
485+
TableName: ptr.Of(d.table),
486+
ReturnValuesOnConditionCheckFailure: types.ReturnValuesOnConditionCheckFailureAllOld,
487+
}
483488
}
484489
case state.DeleteRequest:
485490
twi.Delete = &types.Delete{

0 commit comments

Comments
 (0)