Skip to content
Snippets Groups Projects
Unverified Commit 192c70ad authored by Denis's avatar Denis Committed by GitHub
Browse files

Merge pull request #20 from ivanalglave/fix-bug-convention

Modification emplacement de la convention généré
parents dee11612 38af2c22
No related branches found
No related tags found
No related merge requests found
......@@ -303,7 +303,7 @@ export class InternshipService {
// Serialize the PDFDocument to bytes (a Uint8Array)
const pdfBytes = await pdfDoc.save();
const newFileName = v4();
const newFilePath = join(__dirname, '..', '..', 'src', 'shared','conventions', newFileName + '.pdf');
const newFilePath = join(__dirname, '..', '..', 'files', newFileName + '.pdf');
writeFileSync(newFilePath, pdfBytes);
const resourceURI = `${config.server.uri}:${config.server.port}/resources/agreements/${newFileName}.pdf`;
this._internshipsDao.findByStudentIdAndUpdateTracking(id,STATE_SECRETARY_ESTABLISHES_INTERNSHIP_AGREEMENT,resourceURI);
......
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment