fix: add missing preset fields to serialization
This commit is contained in:
@@ -231,6 +231,10 @@ export default async function GamePage({
|
|||||||
userImage: user.image,
|
userImage: user.image,
|
||||||
downvotes: performanceEntries.downvotes,
|
downvotes: performanceEntries.downvotes,
|
||||||
launchOptions: performanceEntries.launchOptions,
|
launchOptions: performanceEntries.launchOptions,
|
||||||
|
loadTimeSsd: performanceEntries.loadTimeSsd,
|
||||||
|
loadTimeSd: performanceEntries.loadTimeSd,
|
||||||
|
estimatedBatteryMin: performanceEntries.estimatedBatteryMin,
|
||||||
|
customSystem: performanceEntries.customSystem,
|
||||||
userNotes: performanceEntries.userNotes,
|
userNotes: performanceEntries.userNotes,
|
||||||
verifiedAt: performanceEntries.verifiedAt,
|
verifiedAt: performanceEntries.verifiedAt,
|
||||||
isPinned: performanceEntries.isPinned,
|
isPinned: performanceEntries.isPinned,
|
||||||
@@ -293,6 +297,7 @@ export default async function GamePage({
|
|||||||
|
|
||||||
const serializedPresets = presetRows.map((p) => ({
|
const serializedPresets = presetRows.map((p) => ({
|
||||||
id: p.id,
|
id: p.id,
|
||||||
|
gameId: game.id,
|
||||||
hardwareSlug: p.hardwareSlug,
|
hardwareSlug: p.hardwareSlug,
|
||||||
hardwareName: p.hardwareName,
|
hardwareName: p.hardwareName,
|
||||||
upvotes: p.upvotes,
|
upvotes: p.upvotes,
|
||||||
@@ -315,6 +320,10 @@ export default async function GamePage({
|
|||||||
createdAt: p.createdAt.toISOString(),
|
createdAt: p.createdAt.toISOString(),
|
||||||
settingsJson: p.settingsJson,
|
settingsJson: p.settingsJson,
|
||||||
launchOptions: p.launchOptions,
|
launchOptions: p.launchOptions,
|
||||||
|
loadTimeSsd: p.loadTimeSsd ?? null,
|
||||||
|
loadTimeSd: p.loadTimeSd ?? null,
|
||||||
|
estimatedBatteryMin: p.estimatedBatteryMin ?? null,
|
||||||
|
customSystem: p.customSystem ?? false,
|
||||||
userNotes: p.userNotes,
|
userNotes: p.userNotes,
|
||||||
userId: p.userId,
|
userId: p.userId,
|
||||||
userName: p.userName,
|
userName: p.userName,
|
||||||
|
|||||||
Reference in New Issue
Block a user