diff --git a/.eslintrc.js b/.eslintrc.js index 26246e07..19c8bd16 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/ban-ts-ignore': 'off', '@typescript-eslint/ban-ts-comment': 'off', + '@typescript-eslint/no-unused-vars': 'off', 'lines-between-class-members': [ 'error', 'always', diff --git a/package.json b/package.json index 2a7b6088..e81997a4 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "start:debug": "nest start --debug --watch", "start:prod": "node --unhandled-rejections=none dist/main", "start:prod-exit": "node dist/main", - "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --max-warnings=0", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage", diff --git a/src/core/session.noweb.core.ts b/src/core/session.noweb.core.ts index 2a58dd1b..98448bff 100644 --- a/src/core/session.noweb.core.ts +++ b/src/core/session.noweb.core.ts @@ -180,7 +180,7 @@ export class WhatsappSessionNoWebCore extends WhatsappSession { if (!this.store) { return proto.Message.fromObject({}); } - const msg = await this.store.loadMessage(key.remoteJid!, key.id!); + const msg = await this.store.loadMessage(key.remoteJid, key.id); return msg?.message || undefined; }