fix: print ok not ok by string boolean

This commit is contained in:
Julian Krauser 2025-07-26 11:50:26 +02:00
parent 9b4e1e17c0
commit 2d978b960b

View file

@ -288,7 +288,7 @@ export async function finishInspection(req: Request, res: Response): Promise<any
let pngImageBytes = await sharp(imagePath).png().toBuffer();
image = `data:image/png;base64,${pngImageBytes.toString("base64")}`;
} else if (ip.type == InspectionPointEnum.oknok) {
value = value ? "OK" : "Nicht OK";
value = value == "true" ? "OK" : "Nicht OK";
}
inspectionPoints.push({
title: ip.title,