adjusts in redis

This commit is contained in:
Davidson Gomes 2024-04-09 07:43:20 -03:00
parent 5d951a96b5
commit a5477509bd

View File

@ -634,16 +634,15 @@ export class BaileysStartupService extends WAStartupService {
}
public async receiveMobileCode(code: string) {
console.log('code', code);
// await this.client
// .register(code.replace(/["']/g, '').trim().toLowerCase())
// .then(async (response) => {
// this.logger.verbose('Registration code received successfully');
// console.log(response);
// })
// .catch((error) => {
// this.logger.error(error);
// });
await this.client
.register(code.replace(/["']/g, '').trim().toLowerCase())
.then(async (response) => {
this.logger.verbose('Registration code received successfully');
console.log(response);
})
.catch((error) => {
this.logger.error(error);
});
}
public async reloadConnection(): Promise<WASocket> {