Merge pull request #852 from paulillo/fix-wpp-biz-api-upload-media-s3

Fix wpp biz api upload media s3
This commit is contained in:
Davidson Gomes 2024-09-03 14:40:50 -03:00 committed by GitHub
commit 401770be1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ export class InstanceDto extends IntegrationDto {
proxyProtocol?: string;
proxyUsername?: string;
proxyPassword?: string;
chatwootAutoCreate?: boolean;
}
export class SetPresenceDto {

View File

@ -321,7 +321,7 @@ export class BusinessStartupService extends ChannelStartupService {
try {
const message: any = received;
const id = message[message.type].id;
const id = message.messages[0][message.messages[0].type].id;
let urlServer = this.configService.get<WaBusiness>('WA_BUSINESS').URL;
const version = this.configService.get<WaBusiness>('WA_BUSINESS').VERSION;
urlServer = `${urlServer}/${version}/${id}`;