Fix game failing to archive bug, players move to info object, and archiveFullGameToR2 was not updated

This commit is contained in:
evanpelle
2025-05-27 11:43:43 -07:00
parent de0192bcd3
commit e46643c1c8
+1 -1
View File
@@ -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";
});