fix puppetter lanch for downloading anchor proof
This commit is contained in:
parent
51721456e8
commit
eafe7b4d01
@ -90,6 +90,7 @@ export default class OfficeFoldersController extends ApiController {
|
||||
const sortedHashes = [...folderHashes].sort();
|
||||
const anchoringProof = await this.secureService.download(sortedHashes, officeFolder.office!.name);
|
||||
|
||||
|
||||
const addFileToZip =
|
||||
(zip: Zip) =>
|
||||
(uid: string): Promise<void> =>
|
||||
|
@ -22,9 +22,9 @@ export default class AnchoringProofService extends BaseService {
|
||||
public async generate(data: AnchoringProofData): Promise<Buffer> {
|
||||
const browser = await puppeteer.launch({
|
||||
headless: "new",
|
||||
executablePath: `/usr/bin/chromium`,
|
||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||
});
|
||||
|
||||
const page = await browser.newPage();
|
||||
|
||||
const proofTemplateSvg = proofTemplate({
|
||||
|
Loading…
x
Reference in New Issue
Block a user