mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 19:55:35 +00:00
Fix game failing to archive bug, players move to info object, and archiveFullGameToR2 was not updated
This commit is contained in:
@@ -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";
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user