fix: fix in chatwoot set, sign msg can now be disabled

This commit is contained in:
Davidson Gomes 2023-07-24 15:12:13 -03:00
parent 4d00351db7
commit 45c11a5a8e
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@
* Now it only updates the contact name if it is the same as the phone number in chatwoot * Now it only updates the contact name if it is the same as the phone number in chatwoot
* Now accepts all chatwoot inbox templates * Now accepts all chatwoot inbox templates
* Command to create new instances set to /new_instance:<NAME>:<NUMBER> * Command to create new instances set to /new_instance:<NAME>:<NUMBER>
* Fix in chatwoot set, sign msg can now be disabled
### Integrations ### Integrations

View File

@ -33,7 +33,7 @@ export class ChatwootController {
throw new BadRequestException('token is required'); throw new BadRequestException('token is required');
} }
if (!data.sign_msg) { if (data.sign_msg !== true && data.sign_msg !== false) {
throw new BadRequestException('sign_msg is required'); throw new BadRequestException('sign_msg is required');
} }
} }