diff --git a/elstat/blueprints/incidents.py b/elstat/blueprints/incidents.py index 3f3d126..ee7e1aa 100644 --- a/elstat/blueprints/incidents.py +++ b/elstat/blueprints/incidents.py @@ -175,8 +175,8 @@ async def patch_incident(request, incident_id): incident = request.json manager = request.app.manager - if 'end_timestamp' not in incident and not incident['ongoing']: - incident['end_timestamp'] = _time() + if 'end_date' not in incident and not incident['ongoing']: + incident['end_date'] = _time() orig = fetch_dict(manager.conn, incident_id)