mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
graphql: fix long literal passed in a variable (#24864)
This commit is contained in:
parent
e0a1fd5fdc
commit
440c9fcf75
@ -65,6 +65,8 @@ func (b *Long) UnmarshalGraphQL(input interface{}) error {
|
||||
*b = Long(input)
|
||||
case int64:
|
||||
*b = Long(input)
|
||||
case float64:
|
||||
*b = Long(input)
|
||||
default:
|
||||
err = fmt.Errorf("unexpected type %T for Long", input)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user