5035-tryToSolve_intermittentBackTest #1379
|
@ -131,7 +131,7 @@ module.exports = Self => {
|
|||
WHERE u.id = ?`, [userId], options);
|
||||
|
||||
let roles = [];
|
||||
for (role of result)
|
||||
for (const role of result)
|
||||
roles.push(role.name);
|
||||
|
||||
return roles;
|
||||
|
|
|
@ -65,7 +65,7 @@ module.exports = Self => {
|
|||
try {
|
||||
await fs.access(file.path);
|
||||
} catch (error) {
|
||||
await Self.createPdf(ctx, id);
|
||||
await Self.createPdf(ctx, id, myOptions);
|
||||
}
|
||||
|
||||
const stream = fs.createReadStream(file.path);
|
||||
|
|
Loading…
Reference in New Issue