Skip to content

Commit 283b497

Browse files
committed
downgrade baileys version
1 parent 8cc1b8d commit 283b497

File tree

16 files changed

+34
-21
lines changed

16 files changed

+34
-21
lines changed

.github/workflows/publish_docker_image.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929

3030
- name: set docker tag
3131
run: |
32-
echo "DOCKER_TAG=ghcr.io/stack-app-br/evolution-api:$GIT_REF" >> $GITHUB_ENV
32+
echo "DOCKER_TAG=ghcr.io/atendai/evolution-api:$GIT_REF" >> $GITHUB_ENV
3333
3434
- name: replace docker tag if main
3535
if: github.ref_name == 'main'
3636
run: |
37-
echo "DOCKER_TAG=ghcr.io/stack-app-br/evolution-api:latest" >> $GITHUB_ENV
37+
echo "DOCKER_TAG=ghcr.io/atendai/evolution-api:latest" >> $GITHUB_ENV
3838
3939
- name: Login to GitHub Container Registry
4040
uses: docker/login-action@v3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"amqplib": "^0.10.3",
5050
"@aws-sdk/client-sqs": "^3.569.0",
5151
"axios": "^1.6.5",
52-
"baileys": "^6.7.2",
52+
"@whiskeysockets/baileys": "6.6.0",
5353
"class-validator": "^0.14.1",
5454
"compression": "^1.7.4",
5555
"cors": "^2.8.5",

src/api/controllers/instance.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { delay } from 'baileys';
1+
import { delay } from '@whiskeysockets/baileys';
22
import { isURL } from 'class-validator';
33
import EventEmitter2 from 'eventemitter2';
44
import { v4 } from 'uuid';

src/api/dto/chat.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { proto, WAPresence, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from 'baileys';
1+
import { proto, WAPresence, WAPrivacyOnlineValue, WAPrivacyValue, WAReadReceiptsValue } from '@whiskeysockets/baileys';
22

33
export class OnWhatsAppDto {
44
constructor(

src/api/dto/instance.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { WAPresence } from 'baileys';
1+
import { WAPresence } from '@whiskeysockets/baileys';
22

33
import { ProxyDto } from './proxy.dto';
44

src/api/dto/sendMessage.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { proto, WAPresence } from 'baileys';
1+
import { proto, WAPresence } from '@whiskeysockets/baileys';
22

33
export class Quoted {
44
key: proto.IMessageKey;

src/api/integrations/chatwoot/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import ChatwootClient, {
88
inbox,
99
} from '@figuro/chatwoot-sdk';
1010
import { request as chatwootRequest } from '@figuro/chatwoot-sdk/dist/core/request';
11+
import { proto } from '@whiskeysockets/baileys';
1112
import axios from 'axios';
12-
import { proto } from 'baileys';
1313
import FormData from 'form-data';
1414
import { createReadStream, unlinkSync, writeFileSync } from 'fs';
1515
import Jimp from 'jimp';

src/api/integrations/chatwoot/utils/chatwoot-import-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { inbox } from '@figuro/chatwoot-sdk';
2-
import { proto } from 'baileys';
2+
import { proto } from '@whiskeysockets/baileys';
33

44
import { InstanceDto } from '../../../../api/dto/instance.dto';
55
import { ChatwootRaw, ContactRaw, MessageRaw } from '../../../../api/models';

src/api/models/integration.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ export class IntegrationRaw {
99
token?: string;
1010
}
1111

12-
const sqsSchema = new Schema<IntegrationRaw>({
12+
const integrationSchema = new Schema<IntegrationRaw>({
1313
_id: { type: String, _id: true },
1414
integration: { type: String, required: true },
1515
number: { type: String, required: true },
1616
token: { type: String, required: true },
1717
});
1818

19-
export const IntegrationModel = dbserver?.model(IntegrationRaw.name, sqsSchema, 'integration');
19+
export const IntegrationModel = dbserver?.model(IntegrationRaw.name, integrationSchema, 'integration');
2020
export type IntegrationModel = typeof IntegrationModel;

src/api/services/cache.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BufferJSON } from 'baileys';
1+
import { BufferJSON } from '@whiskeysockets/baileys';
22

33
import { Logger } from '../../config/logger.config';
44
import { ICache } from '../abstract/abstract.cache';

0 commit comments

Comments
 (0)