fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit ccd019d86a - Show all commits

View file

@ -53,6 +53,7 @@ import e from 'express';
import { GBUtil } from '../../../src/util.js';
const { WAState, List, Buttons, Client, MessageMedia } = pkg;
import twilio from 'twilio';
import { GBVMService } from 'packages/basic.gblib/services/GBVMService.js';
/**
@ -180,7 +181,7 @@ export class WhatsappDirectLine extends GBService {
}
if (adminEmail){
const pid = GBAdminService.getNumberIdentifier();
const pid = GBVMService.createProcessInfo(null, this.min, 'wppboot', null);
await s.sendEmail({pid, to: adminEmail, subject: `Check your WhatsApp for bot ${this.min.botId}`,
body: msg
});