diff --git a/pusher/package.json b/pusher/package.json index 09d6794a..7edf3d5d 100644 --- a/pusher/package.json +++ b/pusher/package.json @@ -10,8 +10,8 @@ "runprod": "node --max-old-space-size=4096 ./dist/server.js", "profile": "tsc && node --prof ./dist/server.js", "test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json", - "lint": "node_modules/.bin/eslint src/ . --ext .ts", - "fix": "node_modules/.bin/eslint --fix src/ . --ext .ts" + "lint": "DEBUG= node_modules/.bin/eslint src/ . --ext .ts", + "fix": "DEBUG= node_modules/.bin/eslint --fix src/ . --ext .ts" }, "repository": { "type": "git", diff --git a/pusher/src/Controller/BaseController.ts b/pusher/src/Controller/BaseController.ts index 2096496d..673ffd3c 100644 --- a/pusher/src/Controller/BaseController.ts +++ b/pusher/src/Controller/BaseController.ts @@ -12,6 +12,7 @@ export class BaseController { /** * Turns any exception into a HTTP response (and logs the error) */ + // eslint-disable-next-line @typescript-eslint/no-explicit-any protected errorToResponse(e: any, res: HttpResponse): void { console.error("An error happened", e); if (e.response) { diff --git a/pusher/src/Services/SocketManager.ts b/pusher/src/Services/SocketManager.ts index eedb1e7a..2f86ae19 100644 --- a/pusher/src/Services/SocketManager.ts +++ b/pusher/src/Services/SocketManager.ts @@ -544,7 +544,7 @@ export class SocketManager implements ZoneEventListener { client.send(serverToClientMessage.serializeBinary().buffer, true); } - public async emitSendUserMessage(userUuid: string, message: string, type: string): Promise { + public emitSendUserMessage(userUuid: string, message: string, type: string): void { const client = this.searchClientByUuid(userUuid); if(!client){ throw Error('client not found'); @@ -569,7 +569,7 @@ export class SocketManager implements ZoneEventListener { });*/ } - public async emitBan(userUuid: string, message: string, type: string): Promise { + public emitBan(userUuid: string, message: string, type: string): void { const client = this.searchClientByUuid(userUuid); if(!client){ throw Error('client not found');