Skip to content

Commit 6143bb4

Browse files
committed
fix: updating map state to use ItemSelector instead of parameters for CheckImageIntegrity
1 parent c593bb1 commit 6143bb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unicorn_properties/state_machine/property_approval.asl.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ States:
3030

3131
CheckImageIntegrity:
3232
Type: Map
33-
Parameters:
34-
ImageName.$: "$$.Map.Item.Value"
3533
Iterator:
3634
StartAt: CheckForUnsafeContentInImages
3735
States:
@@ -49,6 +47,8 @@ States:
4947
Loop through all the images for the property and ensure they don't have
5048
unsafe content.
5149
ItemsPath: "$.detail.images"
50+
ItemSelector:
51+
ImageName.$: $$.Map.Item.Value
5252
ResultPath: "$.imageModerations"
5353

5454
CheckDescriptionSentiment:

0 commit comments

Comments
 (0)