repair: replace path_foto to sparepart_foto

This commit is contained in:
2025-11-25 09:21:35 +07:00
parent 8dcdddb42f
commit fd07481fb0
3 changed files with 2 additions and 2 deletions

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