fix call to HardwareInfo
All checks were successful
Build Docker containers / Build (push) Successful in 39s
All checks were successful
Build Docker containers / Build (push) Successful in 39s
This commit is contained in:
@ -668,7 +668,7 @@ app.get('/api/v1/stats/hardware-models', async (req, res) => {
|
|||||||
return {
|
return {
|
||||||
count: result._count.hardware_model,
|
count: result._count.hardware_model,
|
||||||
hardware_model: result.hardware_model,
|
hardware_model: result.hardware_model,
|
||||||
hardware_model_name: HardwareModel.valuesById[result.hardware_model] ?? "UNKNOWN",
|
hardware_model_name: HardwareModel[result.hardware_model] ?? "UNKNOWN",
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user