From d2e40a26967f3134f20ceb8f10a2837ef4a356c8 Mon Sep 17 00:00:00 2001 From: Adrian Bonpin Date: Thu, 30 Apr 2026 21:59:00 +0800 Subject: [PATCH] fix: add missing preset fields to serialization --- app/game/[id]/page.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/game/[id]/page.tsx b/app/game/[id]/page.tsx index 99d112b..c1d6158 100644 --- a/app/game/[id]/page.tsx +++ b/app/game/[id]/page.tsx @@ -231,6 +231,10 @@ export default async function GamePage({ userImage: user.image, downvotes: performanceEntries.downvotes, launchOptions: performanceEntries.launchOptions, + loadTimeSsd: performanceEntries.loadTimeSsd, + loadTimeSd: performanceEntries.loadTimeSd, + estimatedBatteryMin: performanceEntries.estimatedBatteryMin, + customSystem: performanceEntries.customSystem, userNotes: performanceEntries.userNotes, verifiedAt: performanceEntries.verifiedAt, isPinned: performanceEntries.isPinned, @@ -293,6 +297,7 @@ export default async function GamePage({ const serializedPresets = presetRows.map((p) => ({ id: p.id, + gameId: game.id, hardwareSlug: p.hardwareSlug, hardwareName: p.hardwareName, upvotes: p.upvotes, @@ -315,6 +320,10 @@ export default async function GamePage({ createdAt: p.createdAt.toISOString(), settingsJson: p.settingsJson, launchOptions: p.launchOptions, + loadTimeSsd: p.loadTimeSsd ?? null, + loadTimeSd: p.loadTimeSd ?? null, + estimatedBatteryMin: p.estimatedBatteryMin ?? null, + customSystem: p.customSystem ?? false, userNotes: p.userNotes, userId: p.userId, userName: p.userName,