Skip to content

Commit

Permalink
chore(server): update convert value in gql
Browse files Browse the repository at this point in the history
  • Loading branch information
pyshx committed Nov 7, 2023
1 parent ee5844d commit 3bbd0f9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions server/internal/adapter/gql/gqlmodel/convert_value.go
Expand Up @@ -73,10 +73,12 @@ func valueInterfaceToGqlValue(v interface{}) interface{} {
North: v2.North,
South: v2.South,
}
case []string:
return v2
case []float64:
return v2
case []any:
gqlArray := make([]any, len(v2))
for i, item := range v2 {
gqlArray[i] = valueInterfaceToGqlValue(item)
}
return gqlArray
}
return nil
}
Expand Down

0 comments on commit 3bbd0f9

Please sign in to comment.