diff --git a/bun.lockb b/bun.lockb index 32cfcf0c..1055215e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/server/api/api/v1/instance/index.ts b/server/api/api/v1/instance/index.ts index 53fce16a..060ae2d9 100644 --- a/server/api/api/v1/instance/index.ts +++ b/server/api/api/v1/instance/index.ts @@ -32,7 +32,7 @@ export default apiRoute(async (req, matchedRoute, extraData) => { }) .from(Notes) .where( - sql`EXISTS (SELECT 1 FROM "User" WHERE "User"."id" = ${Notes.authorId} AND "User"."instanceId" IS NULL)`, + sql`EXISTS (SELECT 1 FROM "Users" WHERE "Users"."id" = ${Notes.authorId} AND "Users"."instanceId" IS NULL)`, ) )[0].count;