This commit is contained in:
parent
0ca0d978f9
commit
00ea09c7e2
|
@ -116,12 +116,8 @@ class PrintServer {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Job data
|
// Job data
|
||||||
let jobData;
|
|
||||||
// FIXME: Cannot read property 'method' of undefined
|
// FIXME: Cannot read property 'method' of undefined
|
||||||
for (let a = 0; !jobData && a < 4; a++) {
|
const [[jobData]] = await conn.query(jobDataQuery, jobId);
|
||||||
[[jobData]] = await conn.query(jobDataQuery, jobId);
|
|
||||||
}
|
|
||||||
|
|
||||||
const args = {};
|
const args = {};
|
||||||
const [res] = await conn.query(jobArgsQuery, jobId);
|
const [res] = await conn.query(jobArgsQuery, jobId);
|
||||||
for (const row of res)
|
for (const row of res)
|
||||||
|
@ -137,7 +133,6 @@ class PrintServer {
|
||||||
});
|
});
|
||||||
|
|
||||||
let pdfData;
|
let pdfData;
|
||||||
|
|
||||||
for (let attempts = 0; !pdfData && attempts < 2; attempts++) {
|
for (let attempts = 0; !pdfData && attempts < 2; attempts++) {
|
||||||
// URL params
|
// URL params
|
||||||
const params = {
|
const params = {
|
||||||
|
|
Loading…
Reference in New Issue