fix(app): comment out boot instance creation and saving in legacy mode
Some checks failed
GBCI / build (push) Has been cancelled
Some checks failed
GBCI / build (push) Has been cancelled
This commit is contained in:
parent
8ffc62ed67
commit
70c2d7c0d5
1 changed files with 5 additions and 3 deletions
|
@ -458,7 +458,7 @@ export class GBMinService {
|
||||||
// Provides checking of instance health.
|
// Provides checking of instance health.
|
||||||
|
|
||||||
this.createCheckHealthAddress(GBServer.globals.server, min, min.instance);
|
this.createCheckHealthAddress(GBServer.globals.server, min, min.instance);
|
||||||
|
|
||||||
// Setups official handler for WhatsApp.
|
// Setups official handler for WhatsApp.
|
||||||
|
|
||||||
GBServer.globals.server
|
GBServer.globals.server
|
||||||
|
@ -467,13 +467,15 @@ export class GBMinService {
|
||||||
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];
|
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
GBLogEx.verbose(min, `WhatsApp: ${status.recipient_id} ${status.status}`);
|
GBLogEx.info(min, `WhatsApp: ${status.recipient_id} ${status.status}`);
|
||||||
return;
|
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') {
|
if (req.query['hub.mode'] === 'subscribe') {
|
||||||
const val = req.query['hub.verify_token'];
|
const val = req.query['hub.verify_token'];
|
||||||
const challenge = (min.core['getParam'] as any)(min.instance, `Meta Challenge`, null, true);
|
|
||||||
|
|
||||||
if (challenge && val === challenge) {
|
if (challenge && val === challenge) {
|
||||||
res.send(req.query['hub.challenge']);
|
res.send(req.query['hub.challenge']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue