wisdom #17

Merged
bragaz_rexita merged 8 commits from wisdom into main 2025-11-25 03:50:09 +00:00
3 changed files with 2 additions and 2 deletions
Showing only changes of commit fd07481fb0 - Show all commits

View File

@@ -33,7 +33,7 @@ class SparepartController {
const typeDoc = ext === ".pdf" ? "PDF" : "IMAGE";
const folder = typeDoc === "PDF" ? "pdf" : "images";
const pathDocument = `${folder}/${file.filename}`;
value.path_foto = pathDocument;
value.sparepart_foto = pathDocument;
}
value.created_by = req.user?.user_id || null;
const results = await SparepartService.createSparepart(value);
@@ -58,7 +58,7 @@ class SparepartController {
const typeDoc = ext === ".pdf" ? "PDF" : "IMAGE";
const folder = typeDoc === "PDF" ? "pdf" : "images";
const pathDocument = `${folder}/${file.filename}`;
value.path_foto = pathDocument;
value.sparepart_foto = pathDocument;
}
value.updated_by = req.user?.user_id || null;
const results = await SparepartService.updateSparepart(id, value);

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB