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"; });