fix: print ok not ok by string boolean
This commit is contained in:
parent
9b4e1e17c0
commit
2d978b960b
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ export async function finishInspection(req: Request, res: Response): Promise<any
|
||||||
let pngImageBytes = await sharp(imagePath).png().toBuffer();
|
let pngImageBytes = await sharp(imagePath).png().toBuffer();
|
||||||
image = `data:image/png;base64,${pngImageBytes.toString("base64")}`;
|
image = `data:image/png;base64,${pngImageBytes.toString("base64")}`;
|
||||||
} else if (ip.type == InspectionPointEnum.oknok) {
|
} else if (ip.type == InspectionPointEnum.oknok) {
|
||||||
value = value ? "OK" : "Nicht OK";
|
value = value == "true" ? "OK" : "Nicht OK";
|
||||||
}
|
}
|
||||||
inspectionPoints.push({
|
inspectionPoints.push({
|
||||||
title: ip.title,
|
title: ip.title,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue