diff --git a/types/mapper/batchmove.go b/types/mapper/batchmove.go index c0b4b7bb3..c8a846e26 100644 --- a/types/mapper/batchmove.go +++ b/types/mapper/batchmove.go @@ -21,7 +21,7 @@ func (b *BatchMove) FromInternal(data map[string]interface{}) { } func (b *BatchMove) ToInternal(data map[string]interface{}) { - for i := len(b.moves) - 1; i >= 0; i++ { + for i := len(b.moves) - 1; i >= 0; i-- { b.moves[i].ToInternal(data) } }