From 0a13793726391e525f99c97036a9f8212f40d108 Mon Sep 17 00:00:00 2001 From: Baha Aiman Date: Mon, 22 Jul 2024 17:36:31 +0000 Subject: [PATCH] feat(firestore): resolving review comments --- firestore/query.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firestore/query.go b/firestore/query.go index e46de704943e..4a1254d27306 100644 --- a/firestore/query.go +++ b/firestore/query.go @@ -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