[core] add PORT for heroku support

fix #555
This commit is contained in:
devlikepro committed 2024-09-27 16:34:37 +07:00
1 parent 3ad5b67fef
commit 0779e326d7
1 file changed
+3
+3
View File
@@ -18,6 +18,9 @@ export class WhatsappConfigService {
}
get port(): string {
if (this.configService.get('PORT')) {
return this.configService.get('PORT');
}
return this.configService.get('WHATSAPP_API_PORT', '3000');
}