fix: add transaction
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-03-09 07:58:39 +01:00
parent c3cf3f3d91
commit c46d325e23
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);