This commit is contained in:
Davidson Gomes 2023-10-09 19:57:26 -03:00
parent 62c74deac3
commit 957033a7bb

View File

@ -33,7 +33,6 @@ import makeWASocket, {
WAMessageUpdate, WAMessageUpdate,
WASocket, WASocket,
} from '@whiskeysockets/baileys'; } from '@whiskeysockets/baileys';
import MAIN_LOGGER from '@whiskeysockets/baileys/lib/Utils/logger';
import axios from 'axios'; import axios from 'axios';
import { exec, execSync } from 'child_process'; import { exec, execSync } from 'child_process';
import { arrayUnique, isBase64, isURL } from 'class-validator'; import { arrayUnique, isBase64, isURL } from 'class-validator';
@ -132,8 +131,6 @@ import { ChatwootService } from './chatwoot.service';
//import { SocksProxyAgent } from './socks-proxy-agent'; //import { SocksProxyAgent } from './socks-proxy-agent';
import { TypebotService } from './typebot.service'; import { TypebotService } from './typebot.service';
const logger = MAIN_LOGGER.child({});
export class WAStartupService { export class WAStartupService {
constructor( constructor(
private readonly configService: ConfigService, private readonly configService: ConfigService,
@ -1545,7 +1542,7 @@ export class WAStartupService {
'buffer', 'buffer',
{}, {},
{ {
logger: logger, logger: P({ level: 'error' }) as any,
reuploadRequest: this.client.updateMediaMessage, reuploadRequest: this.client.updateMediaMessage,
}, },
); );