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
|
|
@ -464,6 +464,9 @@ export class GBMinService {
|
||||||
GBServer.globals.server
|
GBServer.globals.server
|
||||||
.all(`/${min.instance.botId}/whatsapp`, async (req, res) => {
|
.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];
|
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
|
|
@ -471,8 +474,6 @@ export class GBMinService {
|
||||||
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'];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue