diff options
| author | Dhravya <[email protected]> | 2024-04-12 17:46:42 -0700 |
|---|---|---|
| committer | Dhravya <[email protected]> | 2024-04-12 17:46:42 -0700 |
| commit | 93e4fd75d38eb8783e908aeffc9d1f256c41a581 (patch) | |
| tree | 5f99998c42292640e153e6e715f06cc136779702 /apps/web/src | |
| parent | merge (diff) | |
| download | supermemory-93e4fd75d38eb8783e908aeffc9d1f256c41a581.tar.xz supermemory-93e4fd75d38eb8783e908aeffc9d1f256c41a581.zip | |
proper caching and KV
Diffstat (limited to 'apps/web/src')
| -rw-r--r-- | apps/web/src/app/api/store/route.ts | 3 | ||||
| -rw-r--r-- | apps/web/src/lib/utils.ts | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/app/api/store/route.ts b/apps/web/src/app/api/store/route.ts index 8b2ad8ce..af7fa76e 100644 --- a/apps/web/src/app/api/store/route.ts +++ b/apps/web/src/app/api/store/route.ts @@ -80,7 +80,6 @@ export async function POST(req: NextRequest) { storeToSpace = "none"; } - // Count the number of stored content of the user const count = await db .select({ count: sql<number>`count(*)`.mapWith(Number), @@ -88,7 +87,7 @@ export async function POST(req: NextRequest) { .from(storedContent) .where(eq(storedContent.user, session.user.id)); - console.log(count[0].count); + console.log("count", count[0].count); const storedContentId = await db.insert(storedContent).values({ content: data.pageContent, diff --git a/apps/web/src/lib/utils.ts b/apps/web/src/lib/utils.ts index f7e6d3be..f50b526d 100644 --- a/apps/web/src/lib/utils.ts +++ b/apps/web/src/lib/utils.ts @@ -19,6 +19,7 @@ export function cleanUrl(url: string) { } export function getIdsFromSource(sourceIds: string[]) { + console.log(sourceIds); return sourceIds.map((id) => { const parts = id.split("-"); if (parts.length > 1) { |