Skip to content

Commit

Permalink
allow int32 for document integer field
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdf committed Jan 5, 2024
1 parent 266b197 commit 3ed7679
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ func getInt64(v any) (int64, error) {
return val.Int64()
case int:
return int64(val), nil
case int32:
return int64(val), nil
case int64:
return val, nil
case float64:
Expand Down

0 comments on commit 3ed7679

Please sign in to comment.