fix: position splice

This commit is contained in:
Yves Clêuder Lima de Jesus 2024-01-27 22:37:58 -03:00
parent 59f5208c5c
commit 838905f3dd

View File

@ -398,7 +398,7 @@ export class ChatwootService {
if (!contact && !isGroup && query.startsWith('+55') && query.length > 13) {
this.logger.verbose('trying without the 9th digit');
query = query.slice(0, 3) + query.slice(4);
query = query.slice(0, 5) + query.slice(6);
contact = await client.contacts.search({
accountId: this.provider.account_id,
q: query,