fix: resolve all biome lint errors and type issues
- Add file-level biome-ignore for noExplicitAny in prisma-facade.ts (intentional any for Prisma API compatibility surface) - Fix noNonNullAssertion errors in cached-db.ts (redis null-guard fixes) - Auto-fix formatting + organizeImports across modified files - 0 tsc errors, 0 biome errors, 583 tests passing
This commit is contained in:
1 parent
d1807ca814
commit
7f7971f578
7 files changed
+34
-37
No files matched your search
@@ -12,15 +12,12 @@ export const dynamic = "force-dynamic";
|
||||
|
||||
export async function GET(_req: Request) {
|
||||
try {
|
||||
const users = await cached(
|
||||
"online_users",
|
||||
10_000,
|
||||
async () =>
|
||||
prisma.user.findMany({
|
||||
where: { online: "1" },
|
||||
select: { username: true, look: true },
|
||||
take: 100,
|
||||
}),
|
||||
const users = await cached("online_users", 10_000, async () =>
|
||||
prisma.user.findMany({
|
||||
where: { online: "1" },
|
||||
select: { username: true, look: true },
|
||||
take: 100,
|
||||
}),
|
||||
);
|
||||
|
||||
return apiJson({ users });
|
||||
|
||||
Reference in new issue
Block a user