fix(api): remove settingsJson IS NOT NULL filter so entries without in-game settings show up

This commit is contained in:
2026-06-28 21:34:14 +08:00
parent f7c7ed7bbe
commit dedc756dde
+1 -2
View File
@@ -8,7 +8,7 @@ import {
gamePlatformSupport, gamePlatformSupport,
entryScreenshots, entryScreenshots,
} from "@/lib/db/schema" } from "@/lib/db/schema"
import { and, desc, eq, sql } from "drizzle-orm" import { and, desc, eq } from "drizzle-orm"
import { getR2PublicUrl } from "@/lib/storage" import { getR2PublicUrl } from "@/lib/storage"
/** /**
@@ -86,7 +86,6 @@ export const gamesPerformanceRoutes = new Elysia({
and( and(
eq(gameVersions.gameId, gameId), eq(gameVersions.gameId, gameId),
eq(performanceEntries.isRemoved, false), eq(performanceEntries.isRemoved, false),
sql`${performanceEntries.settingsJson} IS NOT NULL`,
), ),
) )
.orderBy( .orderBy(