From e46643c1c8ad9d7730028602c0d17fb732265efd Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 27 May 2025 11:43:43 -0700 Subject: [PATCH] Fix game failing to archive bug, players move to info object, and archiveFullGameToR2 was not updated --- src/server/Archive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/Archive.ts b/src/server/Archive.ts index f2fb29a0a..93053b250 100644 --- a/src/server/Archive.ts +++ b/src/server/Archive.ts @@ -81,7 +81,7 @@ async function archiveFullGameToR2(gameRecord: GameRecord) { const recordCopy = JSON.parse(JSON.stringify(gameRecord)); // Players may see this so make sure to clear PII - recordCopy.players.forEach((p) => { + recordCopy.info.players.forEach((p) => { p.ip = "REDACTED"; p.persistentID = "REDACTED"; });