fix: scope games listing performance tags to handheld devices

This commit is contained in:
2026-05-16 17:29:47 +08:00
parent 4465eb3a87
commit fb892265c4
+4
View File
@@ -143,6 +143,10 @@ export default async function GamesPage() {
}) })
.from(performanceEntries) .from(performanceEntries)
.innerJoin(gameVersions, eq(performanceEntries.versionId, gameVersions.id)) .innerJoin(gameVersions, eq(performanceEntries.versionId, gameVersions.id))
.innerJoin(hardware, and(
eq(performanceEntries.hardwareSlug, hardware.slug),
eq(hardware.deviceType, "handheld"),
))
.where( .where(
and( and(
inArray(gameVersions.gameId, gameIds), inArray(gameVersions.gameId, gameIds),