Skip to content

Commit

Permalink
[SDAAP-52] Speed up the response of the Events Post endpoint (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwoodandrew authored Dec 20, 2022
1 parent e1e23d6 commit 489fb24
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 @@ -340,7 +340,7 @@ def on_created(self, docs):

duplicate_ids = parent_event.get("duplicate_to", [])
duplicate_ids.append(event_id)
self.patch(parent_id, {"duplicate_to": duplicate_ids})
self.patch(parent_id, {"duplicate_to": duplicate_ids, config.ID_FIELD: parent_id})

event_type = "events:created"
user_id = str(doc.get("original_creator", ""))
Expand Down

0 comments on commit 489fb24

Please sign in to comment.