fix(app): comment out boot instance creation and saving in legacy mode
Some checks failed
GBCI / build (push) Failing after 2h8m50s
Some checks failed
GBCI / build (push) Failing after 2h8m50s
This commit is contained in:
parent
70c2d7c0d5
commit
6e141e25a7
1 changed files with 4 additions and 3 deletions
|
@ -458,12 +458,15 @@ export class GBMinService {
|
|||
// Provides checking of instance health.
|
||||
|
||||
this.createCheckHealthAddress(GBServer.globals.server, min, min.instance);
|
||||
|
||||
|
||||
// Setups official handler for WhatsApp.
|
||||
|
||||
GBServer.globals.server
|
||||
.all(`/${min.instance.botId}/whatsapp`, async (req, res) => {
|
||||
|
||||
const challenge = (min.core['getParam'] as any)(min.instance, `Meta Challenge`, null, true);
|
||||
GBLogEx.info(min, `Meta callback entering...${challenge} ${JSON.stringify(req.query)}`);
|
||||
|
||||
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];
|
||||
|
||||
if (status) {
|
||||
|
@ -471,8 +474,6 @@ export class GBMinService {
|
|||
return;
|
||||
}
|
||||
|
||||
const challenge = (min.core['getParam'] as any)(min.instance, `Meta Challenge`, null, true);
|
||||
GBLogEx.info(min, `Meta callback entering...${challenge} ${JSON.stringify(req.query)}`);
|
||||
|
||||
if (req.query['hub.mode'] === 'subscribe') {
|
||||
const val = req.query['hub.verify_token'];
|
||||
|
|
Loading…
Add table
Reference in a new issue