Skip to content

Commit

Permalink
feat(firestore): resolving review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh committed Jul 22, 2024
1 parent cfa13be commit 0a13793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firestore/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@ func (q Query) FindNearestPath(vectorFieldPath FieldPath, queryVector any, limit
case Vector32:
fnvq = vectorToProtoValue([]float32(v))
case []float32:
fnvq = vectorToProtoValue([]float32(v))
fnvq = vectorToProtoValue(v)
case Vector64:
fnvq = vectorToProtoValue([]float64(v))
case []float64:
fnvq = vectorToProtoValue([]float64(v))
fnvq = vectorToProtoValue(v)
default:
vq.q.err = errors.New("firestore: queryVector must be Vector32 or Vector64")
return vq
Expand Down

0 comments on commit 0a13793

Please sign in to comment.