mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
adjusts in redis
This commit is contained in:
parent
5d951a96b5
commit
a5477509bd
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user