Skip to content

Commit

Permalink
Added debug commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kev306 committed Feb 8, 2025
1 parent e685e82 commit 4f17bd0
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/sockets/commands/admin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ import { asessions } from './asessions';
import { acreateseason } from './acreateseason';
import { agetcurrentseason } from './agetcurrentseason';

// Delete the below following season update. Purely for testing purposes
const debugCommands =
process.env.ENV === 'local'
? {
[acreateseason.command]: acreateseason,
[agetcurrentseason.command]: agetcurrentseason,
}
: {};

export const adminCommands: Commands = {
[a.command]: a,
[acreatetestaccounts.command]: acreatetestaccounts,
Expand All @@ -25,10 +34,5 @@ export const adminCommands: Commands = {
[atestgame.command]: atestgame,
[asessions.command]: asessions,
[ausernametoemail.command]: ausernametoemail,

// Update below following season update. These commands need to be fixed
...(process.env.ENABLE_SEASON === 'true' && {
[acreateseason.command]: acreateseason,
[agetcurrentseason.command]: agetcurrentseason,
}),
...debugCommands,
};

0 comments on commit 4f17bd0

Please sign in to comment.