fix: resolve biome lint errors in discovery files
Remove unused functions and imports from route tests, fix array index key warnings in skeleton components, apply biome formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { and, count, desc, eq, isNotNull, lt, sql } from "drizzle-orm";
|
||||
import { db as prodDb } from "../../db/index.ts";
|
||||
import { globalItems, setups, setupItems, users } from "../../db/schema.ts";
|
||||
import { globalItems, setupItems, setups, users } from "../../db/schema.ts";
|
||||
|
||||
type Db = typeof prodDb;
|
||||
|
||||
@@ -44,10 +44,7 @@ export async function getPopularSetups(
|
||||
.leftJoin(users, eq(users.id, setups.userId))
|
||||
.where(eq(setups.isPublic, true))
|
||||
.groupBy(setups.id, setups.name, setups.createdAt, users.displayName)
|
||||
.orderBy(
|
||||
desc(sql<number>`COUNT(${setupItems.id})`),
|
||||
desc(setups.id),
|
||||
)
|
||||
.orderBy(desc(sql<number>`COUNT(${setupItems.id})`), desc(setups.id))
|
||||
.limit(fetchLimit);
|
||||
|
||||
// Apply cursor filter in JS (composite cursor: itemCount_id)
|
||||
|
||||
Reference in New Issue
Block a user