resolve linting issues in the zpl converter operation

This commit is contained in:
william-davis-dev 2024-08-06 21:55:29 -04:00
parent 02ea4bf1c9
commit adf73aa251

View file

@ -75,10 +75,10 @@ class ZPLConvert extends Operation {
// The first segment of the resolution arg is the numeric indicator of the resolution // The first segment of the resolution arg is the numeric indicator of the resolution
const labelResolution = labelResolutionArg.toString().split(" ")[0]; 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, { return fetch(labelaryUrl, {
method: 'POST', method: "POST",
headers: {"accept": "image/png", "Content-Type": "application/x-www-form-urlencoded"}, headers: {"accept": "image/png", "Content-Type": "application/x-www-form-urlencoded"},
body: input, body: input,
}).then(response => { }).then(response => {
@ -90,7 +90,7 @@ class ZPLConvert extends Operation {
} }
return response.blob(); return response.blob();
}).then(blob => { }).then(blob => {
return blob.arrayBuffer() return blob.arrayBuffer();
}).then(data => { }).then(data => {
return data; return data;
}).catch(e => { }).catch(e => {