feat: Added env var QRCODE_COLOR

This commit is contained in:
Davidson Gomes
2023-07-31 15:51:05 -03:00
parent aefe6a5943
commit b88656829e
6 changed files with 9 additions and 2 deletions

View File

@@ -597,11 +597,13 @@ export class WAStartupService {
this.logger.verbose('Incrementing QR code count');
this.instance.qrcode.count++;
const color = this.configService.get<QrCode>('QRCODE').COLOR;
const optsQrcode: QRCodeToDataURLOptions = {
margin: 3,
scale: 4,
errorCorrectionLevel: 'H',
color: { light: '#ffffff', dark: '#198754' },
color: { light: '#ffffff', dark: color },
};
if (this.phoneNumber) {