Skip to content

Commit

Permalink
fix: Remove eve.config from events enhance function
Browse files Browse the repository at this point in the history
This was raising an exception on get of events
  • Loading branch information
MarkLark86 committed Nov 11, 2024
1 parent 0b53134 commit 3ee2c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def on_fetched_item(self, doc):
self._enhance_event_item(doc)

def _enhance_event_item(self, doc):
plannings = get_related_planning_for_events([doc[config.ID_FIELD]])
plannings = get_related_planning_for_events([doc[ID_FIELD]])

if len(plannings):
doc["planning_ids"] = [planning.get("_id") for planning in plannings]
Expand Down

0 comments on commit 3ee2c0b

Please sign in to comment.