fix: adjusts in dockerfile

This commit is contained in:
Davidson Gomes
2023-07-16 19:05:17 -03:00
parent 4b32485e3c
commit 3c15fc1b0d
6 changed files with 21 additions and 23 deletions

View File

@@ -28,21 +28,18 @@ export class InstanceController {
private readonly logger = new Logger(InstanceController.name);
public async createInstance(
{
instanceName,
webhook,
webhook_by_events,
events,
qrcode,
token,
chatwoot_account_id,
chatwoot_token,
chatwoot_url,
chatwoot_sign_msg,
}: InstanceDto,
apiURL: string,
) {
public async createInstance({
instanceName,
webhook,
webhook_by_events,
events,
qrcode,
token,
chatwoot_account_id,
chatwoot_token,
chatwoot_url,
chatwoot_sign_msg,
}: InstanceDto) {
this.logger.verbose('requested createInstance from ' + instanceName + ' instance');
const mode = this.configService.get<Auth>('AUTHENTICATION').INSTANCE.MODE;
@@ -143,7 +140,7 @@ export class InstanceController {
throw new BadRequestException('Invalid "url" property in chatwoot');
}
const urlServer = apiURL;
const urlServer = this.configService.get<HttpServer>('SERVER').URL;
try {
this.chatwootService.create(instance, {
@@ -285,7 +282,7 @@ export class InstanceController {
throw new BadRequestException('Invalid "url" property in chatwoot');
}
const urlServer = apiURL;
const urlServer = this.configService.get<HttpServer>('SERVER').URL;
try {
this.chatwootService.create(instance, {