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/app/api | |
| parent | merge (diff) | |
| download | supermemory-93e4fd75d38eb8783e908aeffc9d1f256c41a581.tar.xz supermemory-93e4fd75d38eb8783e908aeffc9d1f256c41a581.zip | |
proper caching and KV
Diffstat (limited to 'apps/web/src/app/api')
| -rw-r--r-- | apps/web/src/app/api/store/route.ts | 3 |
1 files changed, 1 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, |