mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
chore: Update Dockerfile and whatsapp.baileys.service.ts
Update and modifications in Dockerfile and src/api/services/channels/whatsapp.baileys.service.ts files. These changes improve the performance and maintainability of the Node.js project.
This commit is contained in:
parent
b3a0899f4f
commit
3637b95f8f
@ -11,7 +11,7 @@ WORKDIR /evolution
|
|||||||
|
|
||||||
COPY ./package.json ./tsconfig.json ./
|
COPY ./package.json ./tsconfig.json ./
|
||||||
|
|
||||||
RUN npm install --no-cache
|
RUN npm install
|
||||||
|
|
||||||
COPY ./src ./src
|
COPY ./src ./src
|
||||||
COPY ./public ./public
|
COPY ./public ./public
|
||||||
@ -39,7 +39,7 @@ WORKDIR /evolution
|
|||||||
COPY --from=builder /evolution/package.json ./package.json
|
COPY --from=builder /evolution/package.json ./package.json
|
||||||
COPY --from=builder /evolution/package-lock.json ./package-lock.json
|
COPY --from=builder /evolution/package-lock.json ./package-lock.json
|
||||||
|
|
||||||
RUN npm install --omit=dev --no-cache
|
RUN npm install --omit=dev
|
||||||
|
|
||||||
COPY --from=builder /evolution/dist ./dist
|
COPY --from=builder /evolution/dist ./dist
|
||||||
COPY --from=builder /evolution/prisma ./prisma
|
COPY --from=builder /evolution/prisma ./prisma
|
||||||
|
@ -592,7 +592,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
},
|
},
|
||||||
logger: P({ level: this.logBaileys }),
|
logger: P({ level: this.logBaileys }),
|
||||||
printQRInTerminal: false,
|
printQRInTerminal: false,
|
||||||
// ...browserOptions,
|
...browserOptions,
|
||||||
version,
|
version,
|
||||||
markOnlineOnConnect: this.localSettings.alwaysOnline,
|
markOnlineOnConnect: this.localSettings.alwaysOnline,
|
||||||
retryRequestDelayMs: 350,
|
retryRequestDelayMs: 350,
|
||||||
@ -601,7 +601,6 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
connectTimeoutMs: 20_000,
|
connectTimeoutMs: 20_000,
|
||||||
keepAliveIntervalMs: 30_000,
|
keepAliveIntervalMs: 30_000,
|
||||||
qrTimeout: 45_000,
|
qrTimeout: 45_000,
|
||||||
// defaultQueryTimeoutMs: undefined,
|
|
||||||
emitOwnEvents: false,
|
emitOwnEvents: false,
|
||||||
shouldIgnoreJid: (jid) => {
|
shouldIgnoreJid: (jid) => {
|
||||||
const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);
|
const isGroupJid = this.localSettings.groupsIgnore && isJidGroup(jid);
|
||||||
@ -618,7 +617,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
return this.historySyncNotification(msg);
|
return this.historySyncNotification(msg);
|
||||||
},
|
},
|
||||||
userDevicesCache: this.userDevicesCache,
|
userDevicesCache: this.userDevicesCache,
|
||||||
transactionOpts: { maxCommitRetries: 5, delayBetweenTriesMs: 2500 },
|
transactionOpts: { maxCommitRetries: 10, delayBetweenTriesMs: 3000 },
|
||||||
patchMessageBeforeSending(message) {
|
patchMessageBeforeSending(message) {
|
||||||
if (
|
if (
|
||||||
message.deviceSentMessage?.message?.listMessage?.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST
|
message.deviceSentMessage?.message?.listMessage?.listType === proto.Message.ListMessage.ListType.PRODUCT_LIST
|
||||||
|
Loading…
Reference in New Issue
Block a user