Skip to content

Commit

Permalink
fix: Exception raised with agenda push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkLark86 committed Dec 16, 2024
1 parent e9c4a1a commit 174129f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion newsroom/agenda/agenda_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def update_coverage_details(coverage: dict[str, Any]):
}
await self.system_update(item["_id"], updates)

updated_agenda = self.find_by_id(item["_id"])
updated_agenda = await self.find_by_id(item["_id"])
# Notify agenda to update itself with new details of coverage
parent_coverage["publish_time"] = wire_item.get("publish_schedule") or wire_item.get("firstpublished")
await push_agenda_item_notification("new_item", item=item)
Expand Down
4 changes: 2 additions & 2 deletions newsroom/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@


@celery.task(soft_time_limit=600)
def async_remove_expired_agenda():
remove_expired_agenda()
async def async_remove_expired_agenda():
await remove_expired_agenda()

0 comments on commit 174129f

Please sign in to comment.