mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
refactor singletons
This commit is contained in:
@@ -7,7 +7,7 @@ const rateLimit = require('express-rate-limit').default;
|
||||
const globals = require('../config/globals.js');
|
||||
const cors = require('cors');
|
||||
|
||||
const gameManager = new GameManager().getInstance();
|
||||
const gameManager = GameManager.instance;
|
||||
|
||||
const gameCreationLimit = process.env.NODE_ENV.trim() === 'production'
|
||||
? 20
|
||||
|
||||
Reference in New Issue
Block a user