mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
fix: Fixed validation is set settings
This commit is contained in:
parent
3d8e6f4394
commit
84f3f07279
@ -15,10 +15,6 @@ export class SettingsController {
|
|||||||
'requested createSettings from ' + instance.instanceName + ' instance',
|
'requested createSettings from ' + instance.instanceName + ' instance',
|
||||||
);
|
);
|
||||||
|
|
||||||
if (data.reject_call && data.msg_call.trim() == '') {
|
|
||||||
throw new BadRequestException('msg_call is required');
|
|
||||||
}
|
|
||||||
|
|
||||||
return this.settingsService.create(instance, data);
|
return this.settingsService.create(instance, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1692,7 +1692,7 @@ export class WAStartupService {
|
|||||||
this.logger.verbose('Getting group metadata');
|
this.logger.verbose('Getting group metadata');
|
||||||
mentions = groupMetadata.participants.map((participant) => participant.id);
|
mentions = groupMetadata.participants.map((participant) => participant.id);
|
||||||
this.logger.verbose('Getting group metadata for mentions');
|
this.logger.verbose('Getting group metadata for mentions');
|
||||||
} else if(options.mentions?.mentioned?.length) {
|
} else if (options.mentions?.mentioned?.length) {
|
||||||
this.logger.verbose('Mentions manually defined');
|
this.logger.verbose('Mentions manually defined');
|
||||||
mentions = options.mentions.mentioned.map((mention) => {
|
mentions = options.mentions.mentioned.map((mention) => {
|
||||||
const jid = this.createJid(mention);
|
const jid = this.createJid(mention);
|
||||||
|
Loading…
Reference in New Issue
Block a user