@@ -180,7 +180,7 @@ func serializeMicroflowAction(action microflows.MicroflowAction) bson.D {
180180 // Serialize parameter mappings
181181 if len (a .ParameterMappings ) > 0 {
182182 var mappings bson.A
183- mappings = append (mappings , int64 (3 )) // Array marker (storageListType 3)
183+ mappings = append (mappings , int32 (3 )) // Array marker (storageListType 3)
184184 for _ , pm := range a .ParameterMappings {
185185 mapping := bson.D {
186186 {Key : "$ID" , Value : idToBsonBinary (string (pm .ID ))},
@@ -216,7 +216,7 @@ func serializeMicroflowAction(action microflows.MicroflowAction) bson.D {
216216 // Serialize parameter mappings within MicroflowCall
217217 if len (a .MicroflowCall .ParameterMappings ) > 0 {
218218 var mappings bson.A
219- mappings = append (mappings , int64 (2 )) // Array marker
219+ mappings = append (mappings , int32 (2 )) // Array marker
220220 for _ , pm := range a .MicroflowCall .ParameterMappings {
221221 mapping := bson.D {
222222 {Key : "$ID" , Value : idToBsonBinary (string (pm .ID ))},
@@ -247,7 +247,7 @@ func serializeMicroflowAction(action microflows.MicroflowAction) bson.D {
247247 // Serialize parameter mappings
248248 if len (a .ParameterMappings ) > 0 {
249249 var mappings bson.A
250- mappings = append (mappings , int64 (2 )) // Array marker
250+ mappings = append (mappings , int32 (2 )) // Array marker
251251 for _ , pm := range a .ParameterMappings {
252252 mapping := bson.D {
253253 {Key : "$ID" , Value : idToBsonBinary (string (pm .ID ))},
@@ -461,7 +461,7 @@ func serializeRestCallAction(a *microflows.RestCallAction) bson.D {
461461 // Add parameters if present - each must be wrapped in TemplateParameter object
462462 if len (a .HttpConfiguration .LocationParams ) > 0 {
463463 var params bson.A
464- params = append (params , int64 (2 )) // Array marker
464+ params = append (params , int32 (2 )) // Array marker
465465 for _ , p := range a .HttpConfiguration .LocationParams {
466466 templateParam := bson.D {
467467 {Key : "$ID" , Value : idToBsonBinary (GenerateID ())},
@@ -483,7 +483,7 @@ func serializeRestCallAction(a *microflows.RestCallAction) bson.D {
483483 // Serialize HttpHeaderEntries
484484 if len (a .HttpConfiguration .CustomHeaders ) > 0 {
485485 var headers bson.A
486- headers = append (headers , int64 (2 )) // Array marker
486+ headers = append (headers , int32 (2 )) // Array marker
487487 for _ , h := range a .HttpConfiguration .CustomHeaders {
488488 header := bson.D {
489489 {Key : "$ID" , Value : idToBsonBinary (string (h .ID ))},
@@ -608,7 +608,7 @@ func serializeRestRequestHandling(rh microflows.RequestHandling) bson.D {
608608 // Add parameters - each must be wrapped in TemplateParameter object
609609 if len (h .TemplateParams ) > 0 {
610610 var params bson.A
611- params = append (params , int64 (2 )) // Array marker
611+ params = append (params , int32 (2 )) // Array marker
612612 for _ , p := range h .TemplateParams {
613613 templateParam := bson.D {
614614 {Key : "$ID" , Value : idToBsonBinary (GenerateID ())},
0 commit comments