mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-14 17:05:40 -04:00
fix: publish all mealplan create, update, and delete events (#7015)
Co-authored-by: Michael Genson <genson.michael@gmail.com> Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
@@ -36,6 +36,8 @@ class EventTypes(Enum):
|
||||
data_import = auto()
|
||||
|
||||
mealplan_entry_created = auto()
|
||||
mealplan_entry_updated = auto()
|
||||
mealplan_entry_deleted = auto()
|
||||
|
||||
shopping_list_created = auto()
|
||||
shopping_list_updated = auto()
|
||||
@@ -89,9 +91,8 @@ class EventDocumentDataBase(MealieModel):
|
||||
...
|
||||
|
||||
|
||||
class EventMealplanCreatedData(EventDocumentDataBase):
|
||||
class EventMealplanData(EventDocumentDataBase):
|
||||
document_type: EventDocumentType = EventDocumentType.mealplan
|
||||
operation: EventOperation = EventOperation.create
|
||||
mealplan_id: int
|
||||
date: date
|
||||
recipe_id: UUID4 | None = None
|
||||
|
||||
Reference in New Issue
Block a user