fixed bug preventing adding items via /api/history endpoint

This commit is contained in:
ArabCoders 2025-01-27 21:10:53 +03:00
parent d3d6665e56
commit 1187badc2d

View file

@ -430,7 +430,7 @@ class HttpAPI(common):
for item in data:
try:
self._formatItem(item)
item = self._formatItem(item)
except ValueError as e:
return web.json_response(data={"error": str(e), "data": item}, status=web.HTTPBadRequest.status_code)