File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
src/providers/WorkflowCore.Providers.AWS/Services Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -125,22 +125,24 @@ public async Task<IEnumerable<WorkflowInstance>> GetWorkflowInstances(IEnumerabl
125
125
return new List < WorkflowInstance > ( ) ;
126
126
}
127
127
128
- var keys = new Dictionary < string , AttributeValue > ( ) ;
128
+ var keys = new KeysAndAttributes ( ) { Keys = new List < Dictionary < string , AttributeValue > > ( ) } ;
129
129
foreach ( var id in ids )
130
130
{
131
- keys . Add ( "id" , new AttributeValue { S = id } ) ;
131
+ var key = new Dictionary < string , AttributeValue > ( )
132
+ {
133
+ {
134
+ "id" , new AttributeValue { S = id }
135
+ }
136
+ } ;
137
+ keys . Keys . Add ( key ) ;
132
138
}
133
139
134
140
var request = new BatchGetItemRequest
135
141
{
136
142
RequestItems = new Dictionary < string , KeysAndAttributes > ( )
137
143
{
138
144
{
139
- $ "{ _tablePrefix } -{ WORKFLOW_TABLE } ",
140
- new KeysAndAttributes
141
- {
142
- Keys = new List < Dictionary < string , AttributeValue > > ( ) { keys }
143
- }
145
+ $ "{ _tablePrefix } -{ WORKFLOW_TABLE } ", keys
144
146
}
145
147
}
146
148
} ;
You can’t perform that action at this time.
0 commit comments