mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-07 02:58:11 +00:00
update routes
This commit is contained in:
parent
ac41d34771
commit
5b759b2c29
1 changed files with 3 additions and 1 deletions
|
|
@ -357,7 +357,7 @@ export async function addMemory(
|
|||
.returning())[0]
|
||||
}
|
||||
|
||||
|
||||
console.log("adding with:", `${addedMemory.url}-${user.email}`)
|
||||
// Add to vectorDB
|
||||
const res = (await Promise.race([
|
||||
fetch("https://cf-ai-backend.dhravya.workers.dev/add", {
|
||||
|
|
@ -421,6 +421,7 @@ export async function updateMemory(
|
|||
...prev
|
||||
}
|
||||
|
||||
console.log("adding with:", `${updated.url}-${user.email}`)
|
||||
// Add to vectorDB
|
||||
const res = (await Promise.race([
|
||||
fetch("https://cf-ai-backend.dhravya.workers.dev/edit?uniqueUrl="+updated.url , {
|
||||
|
|
@ -517,6 +518,7 @@ export async function deleteMemory(id: number) {
|
|||
|
||||
if (deleted) {
|
||||
|
||||
console.log("adding with:", `${deleted.url}-${user.email}`)
|
||||
const res = (await Promise.race([
|
||||
fetch(`https://cf-ai-backend.dhravya.workers.dev/delete?websiteUrl=${deleted.url}&user=${user.email}` , {
|
||||
method: "DELETE",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue