fix(api): remove settingsJson IS NOT NULL filter so entries without in-game settings show up
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user