Skip to content

Commit

Permalink
docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Dec 3, 2024
1 parent 0fadae0 commit ac03e45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ networks:
services:
api:
container_name: codechat_api
image: codechat/api:develop
image: codechat/api:v1.3.4
restart: unless-stopped
ports:
- 8084:8084
Expand Down Expand Up @@ -40,6 +40,8 @@ services:

- QRCODE_LIMIT=10
- QRCODE_EXPIRATION_TIME=60
- QRCODE_LIGHT_COLOR='#ffffff'
- QRCODE_DARK_COLOR='#198754'

- CONNECTION_TIMEOUT=300

Expand Down Expand Up @@ -69,4 +71,3 @@ volumes:
instances_connecteds:
external:
name: instances_connecteds
driver: local
10 changes: 7 additions & 3 deletions src/whatsapp/services/whatsapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ import { release } from 'os';
import P from 'pino';
import {
AudioMessageFileDto,
Button,
ContactMessage,
MediaFileDto,
MediaMessage,
Expand Down Expand Up @@ -123,7 +122,7 @@ import {
GroupUpdateParticipantDto,
} from '../dto/group.dto';
import Long from 'long';
import NodeCache, { Data } from 'node-cache';
import NodeCache from 'node-cache';
import {
AuthState,
AuthStateProvider,
Expand All @@ -140,7 +139,7 @@ import { ulid } from 'ulid';
import { isValidUlid } from '../../validate/ulid';
import sharp from 'sharp';
import ffmpeg from 'fluent-ffmpeg';
import { PassThrough, Stream } from 'stream';
import { PassThrough } from 'stream';
import {
accessSync,
constants,
Expand Down Expand Up @@ -2065,6 +2064,11 @@ export class WAStartupService {
}
: ((await this.getMessage(m, true)) as proto.IWebMessageInfo);

if (msg?.message?.documentWithCaptionMessage) {
msg.message.documentMessage =
msg.message.documentWithCaptionMessage?.message.documentMessage;
}

for (const subtype of MessageSubtype) {
if (msg?.message?.[subtype]) {
msg.message = msg.message[subtype].message;
Expand Down

0 comments on commit ac03e45

Please sign in to comment.