Fix TypeScript error in qrDataValidator - use issues instead of errors
All checks were successful
Build and Push Docker Images / docker (push) Successful in 2m19s

Zod v3 uses 'issues' property instead of 'errors' for ZodError.
This fixes the production build failure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Matt 2025-11-03 18:32:44 +01:00
parent 09eb2d3781
commit 2c86863845

View File

@ -79,7 +79,7 @@ export function validateQRData(data: unknown): QRValidationResult {
}; };
} catch (error) { } catch (error) {
if (error instanceof z.ZodError) { if (error instanceof z.ZodError) {
const errorMessages = error.errors.map((err) => { const errorMessages = error.issues.map((err) => {
const path = err.path.join('.'); const path = err.path.join('.');
return `${path ? path + ': ' : ''}${err.message}`; return `${path ? path + ': ' : ''}${err.message}`;
}); });