Skip to content

Commit

Permalink
chore: Improve 'getBase64FromMediaMessage' function in Whatsapp Baile…
Browse files Browse the repository at this point in the history
…ys service

The 'getBase64FromMediaMessage' function in the Whatsapp Baileys service has been improved. Now, the 'getBuffer' parameter has a default value of 'false', making it optional. This change simplifies the function call and enhances readability.

Modified file:
- src/api/services/channels/whatsapp.baileys.service.ts
  • Loading branch information
dgcode-tec committed Jul 13, 2024
1 parent d80b0d1 commit e6916ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/services/channels/whatsapp.baileys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ export class BaileysStartupService extends ChannelStartupService {
}
}

public async getBase64FromMediaMessage(data: getBase64FromMediaMessageDto, getBuffer: boolean) {
public async getBase64FromMediaMessage(data: getBase64FromMediaMessageDto, getBuffer = false) {
try {
const m = data?.message;
const convertToMp4 = data?.convertToMp4 ?? false;
Expand Down

0 comments on commit e6916ac

Please sign in to comment.