aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src
diff options
context:
space:
mode:
authoryxshv <[email protected]>2024-04-14 14:51:08 +0530
committeryxshv <[email protected]>2024-04-14 14:51:08 +0530
commit5b759b2c2905936f7a7aaf043193f2c4ab12576f (patch)
treee00adb5f8085b5d9a008fd44bab9710a9fb05c0b /apps/web/src
parentmerge (diff)
downloadsupermemory-5b759b2c2905936f7a7aaf043193f2c4ab12576f.tar.xz
supermemory-5b759b2c2905936f7a7aaf043193f2c4ab12576f.zip
update routes
Diffstat (limited to 'apps/web/src')
-rw-r--r--apps/web/src/actions/db.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/web/src/actions/db.ts b/apps/web/src/actions/db.ts
index 20aa4de6..d6c3cc5e 100644
--- a/apps/web/src/actions/db.ts
+++ b/apps/web/src/actions/db.ts
@@ -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",