diff options
| author | yxshv <[email protected]> | 2024-04-15 01:57:39 +0530 |
|---|---|---|
| committer | yxshv <[email protected]> | 2024-04-15 01:57:39 +0530 |
| commit | 0ce7c916ffcbf6515c3da521775c72861bddd53c (patch) | |
| tree | a23c4b9b8bce9b7124c8574ee6f60709b522c6ae /apps/web/src/app/api/getCount | |
| parent | space expand layout (diff) | |
| download | supermemory-0ce7c916ffcbf6515c3da521775c72861bddd53c.tar.xz supermemory-0ce7c916ffcbf6515c3da521775c72861bddd53c.zip | |
add profile and fix drawer scroll
Diffstat (limited to 'apps/web/src/app/api/getCount')
| -rw-r--r-- | apps/web/src/app/api/getCount/route.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/app/api/getCount/route.ts b/apps/web/src/app/api/getCount/route.ts index 3238e58a..9fe54f78 100644 --- a/apps/web/src/app/api/getCount/route.ts +++ b/apps/web/src/app/api/getCount/route.ts @@ -1,5 +1,5 @@ import { db } from "@/server/db"; -import { and, eq, sql } from "drizzle-orm"; +import { and, eq, ne, sql } from "drizzle-orm"; import { sessions, storedContent, users } from "@/server/db/schema"; import { type NextRequest, NextResponse } from "next/server"; @@ -66,7 +66,7 @@ export async function GET(req: NextRequest) { .where( and( eq(storedContent.user, session.user.id), - eq(storedContent.type, "page"), + ne(storedContent.type, "twitter-bookmark"), ), ); |