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:
francisferrell
2026-03-26 15:52:55 -04:00
committed by GitHub
parent 910ac4c81f
commit e52a887e30
8 changed files with 135 additions and 8 deletions

View File

@@ -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