Fix(router): fix QR data into image conversion (#4619)

This commit is contained in:
AkshayaFoiger
2024-05-10 12:57:16 +05:30
committed by GitHub
parent ecdac814d8
commit 28ab36873b

View File

@ -185,7 +185,7 @@ impl QrImage {
let image_data_source = format!(
"{},{}",
consts::QR_IMAGE_DATA_SOURCE_STRING,
consts::BASE64_ENGINE.encode(image_bytes.get_ref().get_ref())
consts::BASE64_ENGINE.encode(image_bytes.buffer())
);
Ok(Self {
data: image_data_source,