Skip to content
Snippets Groups Projects
Commit 248d8981 authored by khaled-sadegh's avatar khaled-sadegh
Browse files

correction bug files

parent 7b525aac
Branches generer-convention
No related tags found
1 merge request!18Generer convention
...@@ -303,7 +303,7 @@ export class InternshipService { ...@@ -303,7 +303,7 @@ export class InternshipService {
// Serialize the PDFDocument to bytes (a Uint8Array) // Serialize the PDFDocument to bytes (a Uint8Array)
const pdfBytes = await pdfDoc.save(); const pdfBytes = await pdfDoc.save();
const newFileName = v4(); const newFileName = v4();
const newFilePath = join(__dirname, '..', '..', 'files', newFileName + '.pdf'); const newFilePath = join(__dirname, '..', '..', 'src', 'shared','conventions', newFileName + '.pdf');
writeFileSync(newFilePath, pdfBytes); writeFileSync(newFilePath, pdfBytes);
const resourceURI = `${config.server.uri}:${config.server.port}/resources/agreements/${newFileName}.pdf`; const resourceURI = `${config.server.uri}:${config.server.port}/resources/agreements/${newFileName}.pdf`;
this._internshipsDao.findByStudentIdAndUpdateTracking(id,STATE_SECRETARY_ESTABLISHES_INTERNSHIP_AGREEMENT,resourceURI); this._internshipsDao.findByStudentIdAndUpdateTracking(id,STATE_SECRETARY_ESTABLISHES_INTERNSHIP_AGREEMENT,resourceURI);
......
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