mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 03:42:23 -06:00
feat: Added ignoreJids in chatwoot settings
This commit is contained in:
@@ -345,6 +345,7 @@ export class ChannelStartupService {
|
||||
daysLimitImportMessages: data.daysLimitImportMessages,
|
||||
organization: data.organization,
|
||||
logo: data.logo,
|
||||
ignoreJids: data.ignoreJids,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -369,6 +370,9 @@ export class ChannelStartupService {
|
||||
importContacts: data.importContacts,
|
||||
importMessages: data.importMessages,
|
||||
daysLimitImportMessages: data.daysLimitImportMessages,
|
||||
organization: data.organization,
|
||||
logo: data.logo,
|
||||
ignoreJids: data.ignoreJids,
|
||||
instanceId: this.instanceId,
|
||||
},
|
||||
});
|
||||
@@ -378,7 +382,7 @@ export class ChannelStartupService {
|
||||
this.clearCacheChatwoot();
|
||||
}
|
||||
|
||||
public async findChatwoot() {
|
||||
public async findChatwoot(): Promise<ChatwootDto> {
|
||||
if (!this.configService.get<Chatwoot>('CHATWOOT').ENABLED) {
|
||||
return null;
|
||||
}
|
||||
@@ -393,6 +397,8 @@ export class ChannelStartupService {
|
||||
return null;
|
||||
}
|
||||
|
||||
const ignoreJidsArray = Array.isArray(data.ignoreJids) ? data.ignoreJids.map((event) => String(event)) : [];
|
||||
|
||||
return {
|
||||
enabled: data.enabled,
|
||||
accountId: data.accountId,
|
||||
@@ -407,6 +413,9 @@ export class ChannelStartupService {
|
||||
importContacts: data.importContacts,
|
||||
importMessages: data.importMessages,
|
||||
daysLimitImportMessages: data.daysLimitImportMessages,
|
||||
organization: data.organization,
|
||||
logo: data.logo,
|
||||
ignoreJids: ignoreJidsArray,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user