From 47dc4704c018e2bd848ff3ceb5cf5236f70ca752 Mon Sep 17 00:00:00 2001 From: Ewan Lyon Date: Fri, 26 Feb 2021 11:07:28 +1100 Subject: [PATCH] Correct team export --- src/extension/replicants.ts | 2 +- src/extension/team-import-export.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/replicants.ts b/src/extension/replicants.ts index 3f8bd3d..a5b93a0 100644 --- a/src/extension/replicants.ts +++ b/src/extension/replicants.ts @@ -113,7 +113,7 @@ nodecg.Replicant('mapPlayers', { /* Team data */ -nodecg.Replicant('teamPlayerPreset', { defaultValue: { teams: {}, players: {} } }); +nodecg.Replicant('teamPlayerPreset', { defaultValue: { teams: {}, players: {} }, persistent: true }); /* Tournaments */ diff --git a/src/extension/team-import-export.ts b/src/extension/team-import-export.ts index 3fd3fe3..c3db047 100644 --- a/src/extension/team-import-export.ts +++ b/src/extension/team-import-export.ts @@ -44,7 +44,7 @@ nodecg.listenFor('exportTeams', () => { date = date.replace(/[/,:]/g, ''); date = date.replace(/ /g, '_'); fs.writeFile( - `./assets/csgo-layouts/teamPreset/${date}.json`, + `./assets/nodecg-csgo-manager/teamPreset/${date}.json`, JSON.stringify(mainPreset), (err) => { if (err) {