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