Skip to content

Commit

Permalink
resolve linting issues in the zpl converter operation
Browse files Browse the repository at this point in the history
  • Loading branch information
william-davis-dev committed Aug 7, 2024
1 parent 02ea4bf commit adf73aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/operations/ZPLConvert.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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 => {
Expand Down

0 comments on commit adf73aa

Please sign in to comment.