From 066833a753eed90577b6d28f30ada99f63b5906e Mon Sep 17 00:00:00 2001 From: Dhravya Date: Mon, 17 Jun 2024 20:07:59 -0500 Subject: [PATCH] include all selected spaces in the fetch call to backend --- apps/web/app/actions/doers.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/web/app/actions/doers.ts b/apps/web/app/actions/doers.ts index f94ed8ec..6c7180d9 100644 --- a/apps/web/app/actions/doers.ts +++ b/apps/web/app/actions/doers.ts @@ -168,8 +168,7 @@ export const createMemory = async (input: { title: metadata.title, description: metadata.description, url: metadata.baseUrl, - // TODO: now, in the vector store, we are only saving the first space. We need to save all spaces. - space: storeToSpaces[0], + spaces: storeToSpaces, user: data.user.id, type, }),