From adf73aa251a62779fbed67d28fe37e6a836a1697 Mon Sep 17 00:00:00 2001 From: william-davis-dev <84206899+william-davis-dev@users.noreply.github.com> Date: Tue, 6 Aug 2024 21:55:29 -0400 Subject: [PATCH] resolve linting issues in the zpl converter operation --- src/core/operations/ZPLConvert.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/operations/ZPLConvert.mjs b/src/core/operations/ZPLConvert.mjs index e79585ca..4e6e4f33 100644 --- a/src/core/operations/ZPLConvert.mjs +++ b/src/core/operations/ZPLConvert.mjs @@ -75,10 +75,10 @@ class ZPLConvert extends Operation { // The first segment of the resolution arg is the numeric indicator of the resolution const labelResolution = labelResolutionArg.toString().split(" ")[0]; - const labelaryUrl = `${labelaryApi}/v1/printers/${labelResolution}dpmm/labels/${widthArg}x${heightArg}/${index}` + const labelaryUrl = `${labelaryApi}/v1/printers/${labelResolution}dpmm/labels/${widthArg}x${heightArg}/${index}`; return fetch(labelaryUrl, { - method: 'POST', + method: "POST", headers: {"accept": "image/png", "Content-Type": "application/x-www-form-urlencoded"}, body: input, }).then(response => { @@ -90,7 +90,7 @@ class ZPLConvert extends Operation { } return response.blob(); }).then(blob => { - return blob.arrayBuffer() + return blob.arrayBuffer(); }).then(data => { return data; }).catch(e => {