include all selected spaces in the fetch call to backend

This commit is contained in:
Dhravya 2024-06-17 20:07:59 -05:00
parent 957f131c1c
commit 066833a753

View file

@ -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,
}),