Merge pull request #99 from moskoweb/bug-bad-request

fix: Debug Bad Request
This commit is contained in:
Davidson Gomes
2023-09-11 09:38:28 -03:00
committed by GitHub
3 changed files with 9 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ let io: SocketIO;
const cors = configService.get<Cors>('CORS').ORIGIN;
export const initIO = (httpServer: Server) => {
if (configService.get<Websocket>('WEBSOCKET').ENABLED) {
if (configService.get<Websocket>('WEBSOCKET')?.ENABLED) {
io = new SocketIO(httpServer, {
cors: {
origin: cors,