ensure useriD while saving

This commit is contained in:
Dhravya 2024-06-30 18:22:34 -05:00
parent 1d9446ef8c
commit 9a5e879a62
9 changed files with 727 additions and 7 deletions

View file

@ -55,7 +55,9 @@ const createMemoryFromAPI = async (input: {
let contentId: number | undefined;
const saveToDbUrl =
input.data.url.split("#supermemory-user-")[0] ?? input.data.url;
(input.data.url.split("#supermemory-user-")[0] ?? input.data.url) +
"#supermemory-user-" +
input.userId;
// Insert into database
try {