Skip to content

Commit

Permalink
Correct team export
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Feb 26, 2021
1 parent fe0ca68 commit 47dc470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extension/replicants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ nodecg.Replicant<MapPlayerData[]>('mapPlayers', {

/* Team data */

nodecg.Replicant<TeamsPreset>('teamPlayerPreset', { defaultValue: { teams: {}, players: {} } });
nodecg.Replicant<TeamsPreset>('teamPlayerPreset', { defaultValue: { teams: {}, players: {} }, persistent: true });

/* Tournaments */

Expand Down
2 changes: 1 addition & 1 deletion src/extension/team-import-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 47dc470

Please sign in to comment.