Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 2ecae58

Browse files
committed
fix build
1 parent f843a8c commit 2ecae58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/functions/assembly/search.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function recommendProductByCart(
4545

4646
const normalizedVec = normalize(sumVec);
4747

48-
const cartProductIds = cart.items.map((item) => item.Product.id);
48+
const cartProductIds = cart.items.map<string>((item) => item.Product.id);
4949

5050
const semanticSearchRes = collections.searchByVector(
5151
consts.productNameCollection,

0 commit comments

Comments
 (0)