Skip to content

Commit 838905f

Browse files
committed
fix: position splice
1 parent 59f5208 commit 838905f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/whatsapp/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export class ChatwootService {
398398

399399
if (!contact && !isGroup && query.startsWith('+55') && query.length > 13) {
400400
this.logger.verbose('trying without the 9th digit');
401-
query = query.slice(0, 3) + query.slice(4);
401+
query = query.slice(0, 5) + query.slice(6);
402402
contact = await client.contacts.search({
403403
accountId: this.provider.account_id,
404404
q: query,

0 commit comments

Comments
 (0)