fix: nur 8 analoge Eingänge anzeigen durch api handler

This commit is contained in:
ISA
2025-06-19 13:36:17 +02:00
parent 3a829f2298
commit b804fb88c1
8 changed files with 17 additions and 10 deletions

View File

@@ -56,6 +56,13 @@ export default async function handler(
),
};
// Begrenzung auf maximal 8 Elemente je Array
Object.keys(result).forEach((key) => {
if (Array.isArray(result[key])) {
result[key] = result[key].slice(0, 8);
}
});
return res.status(200).json(result);
}