mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Await chatwoot creation and change log to error
This commit is contained in:
parent
2cb68b38a9
commit
1161a8a0e2
@ -204,7 +204,7 @@ export class InstanceController {
|
||||
const urlServer = this.configService.get<HttpServer>('SERVER').URL;
|
||||
|
||||
try {
|
||||
this.chatwootService.create(instance, {
|
||||
await this.chatwootService.create(instance, {
|
||||
enabled: true,
|
||||
accountId: instanceData.chatwootAccountId,
|
||||
token: instanceData.chatwootToken,
|
||||
@ -220,10 +220,10 @@ export class InstanceController {
|
||||
daysLimitImportMessages: instanceData.chatwootDaysLimitImportMessages ?? 60,
|
||||
organization: instanceData.chatwootOrganization,
|
||||
logo: instanceData.chatwootLogo,
|
||||
autoCreate: instanceData.chatwootAutoCreate !== false,
|
||||
autoCreate: instanceData.chatwootAutoCreate ?? true,
|
||||
});
|
||||
} catch (error) {
|
||||
this.logger.log(error);
|
||||
this.logger.error(error);
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -36,5 +36,6 @@ export function ChatwootInstanceMixin<TBase extends Constructor>(Base: TBase) {
|
||||
chatwootNameInbox?: string;
|
||||
chatwootOrganization?: string;
|
||||
chatwootLogo?: string;
|
||||
chatwootAutoCreate?: boolean;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user