We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af2a652 commit f83d8deCopy full SHA for f83d8de
2 files changed
package.json
@@ -46,7 +46,7 @@
46
"@figuro/chatwoot-sdk": "^1.1.14",
47
"@hapi/boom": "^10.0.1",
48
"@sentry/node": "^7.59.2",
49
- "@whiskeysockets/baileys": "github:EvolutionAPI/Baileys",
+ "@whiskeysockets/baileys": "^6.4.1",
50
"amqplib": "^0.10.3",
51
"axios": "^1.3.5",
52
"class-validator": "^0.13.2",
src/main.ts
@@ -83,6 +83,11 @@ function bootstrap() {
83
httpService.post('', errorData);
84
}
85
86
+ if (err['message'].includes('No sessions') || err['message'].includes('Connection Closed')) {
87
+ console.log(err['message']);
88
+ process.exit(1);
89
+ }
90
+
91
return res.status(err['status'] || 500).json({
92
status: err['status'] || 500,
93
error: err['error'] || 'Internal Server Error',
0 commit comments