Cannot read property 'method' of undefined
This commit is contained in:
parent
dac7c1071d
commit
0ca0d978f9
|
@ -116,7 +116,12 @@ class PrintServer {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Job data
|
// Job data
|
||||||
const [[jobData]] = await conn.query(jobDataQuery, jobId);
|
let jobData;
|
||||||
|
// FIXME: Cannot read property 'method' of undefined
|
||||||
|
for (let a = 0; !jobData && a < 4; a++) {
|
||||||
|
[[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)
|
||||||
|
@ -132,8 +137,8 @@ class PrintServer {
|
||||||
});
|
});
|
||||||
|
|
||||||
let pdfData;
|
let pdfData;
|
||||||
|
|
||||||
for (let attempts = 0; !pdfData && attempts <= 1; attempts++) {
|
for (let attempts = 0; !pdfData && attempts < 2; attempts++) {
|
||||||
// URL params
|
// URL params
|
||||||
const params = {
|
const params = {
|
||||||
access_token: this.token,
|
access_token: this.token,
|
||||||
|
|
Loading…
Reference in New Issue