fix: refs #7644 Update in print method
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
f15df1ef66
commit
6f1d962db2
|
@ -53,6 +53,13 @@ module.exports = Self => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!merger._doc) throw new UserError('The entry not have stickers');
|
if (!merger._doc) throw new UserError('The entry not have stickers');
|
||||||
|
|
||||||
|
await Self.rawSql(`
|
||||||
|
UPDATE buy
|
||||||
|
SET printedStickers = stickers
|
||||||
|
WHERE entryFk = ?
|
||||||
|
`, [id], options);
|
||||||
|
|
||||||
return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`];
|
return [await merger.saveAsBuffer(), 'application/pdf', `filename="entry-${id}.pdf"`];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue