mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-10 18:03:11 -05:00
refactor: webhook events (#1661)
* refactored EventBusService to work outside FastAPI * extended event models * refactored webhooks to run through event bus * added basic webhook test route * changed get_all to page_all * fixed incorrectly implemented Vue variables * fixed broken webhook test * changed factory from staticmethod to classmethod * made query boundary definitions easier to read
This commit is contained in:
@@ -122,7 +122,7 @@ class BaseCrudController(BaseUserController):
|
||||
Base class for all CRUD controllers to facilitate common CRUD functions.
|
||||
"""
|
||||
|
||||
event_bus: EventBusService = Depends(EventBusService)
|
||||
event_bus: EventBusService = Depends(EventBusService.create)
|
||||
|
||||
def publish_event(self, event_type: EventTypes, document_data: EventDocumentDataBase, message: str = "") -> None:
|
||||
self.event_bus.dispatch(
|
||||
|
||||
Reference in New Issue
Block a user