Skip to content

Commit 605eeac

Browse files
committed
fix: Return all values
1 parent b7c0205 commit 605eeac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

state/aws/dynamodb/dynamodb.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ 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+
ReturnValuesOnConditionCheckFailure: types.ReturnValuesOnConditionCheckFailureAllOld,
484+
}
483485
}
484486
case state.DeleteRequest:
485487
twi.Delete = &types.Delete{

0 commit comments

Comments
 (0)