tmp-fix(templates): use barcode generation api

This commit is contained in:
Philipp Dormann 2024-12-11 22:55:30 +01:00
parent 9076a9488e
commit 57f3a910f6
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314

View File

@ -18,6 +18,7 @@ const sendEmailSchema = z.object({
})
async function generateBarcodeDataURL(data) {
return `https://barcodeapi.org/api/128/${data}`
const buffer = await toBuffer({
bcid: 'code128',
text: data,