Skip to content

Commit 84f3f07

Browse files
committed
fix: Fixed validation is set settings
1 parent 3d8e6f4 commit 84f3f07

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/whatsapp/controllers/settings.controller.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ export class SettingsController {
1515
'requested createSettings from ' + instance.instanceName + ' instance',
1616
);
1717

18-
if (data.reject_call && data.msg_call.trim() == '') {
19-
throw new BadRequestException('msg_call is required');
20-
}
21-
2218
return this.settingsService.create(instance, data);
2319
}
2420

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ export class WAStartupService {
16921692
this.logger.verbose('Getting group metadata');
16931693
mentions = groupMetadata.participants.map((participant) => participant.id);
16941694
this.logger.verbose('Getting group metadata for mentions');
1695-
} else if(options.mentions?.mentioned?.length) {
1695+
} else if (options.mentions?.mentioned?.length) {
16961696
this.logger.verbose('Mentions manually defined');
16971697
mentions = options.mentions.mentioned.map((mention) => {
16981698
const jid = this.createJid(mention);

0 commit comments

Comments
 (0)