fix(eventEntriesNotification): corrected handler bug
Build and Push Docker image / build-and-push (push) Successful in 2m13s Details

This commit is contained in:
Valentin Kolb 2024-11-08 15:53:57 +01:00
parent aaebaf8b17
commit 7b4c84bdfc
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func InitEventEntriesNotifier(app *pocketbase.PocketBase, e *core.ServeEvent) er
return nil
})
app.OnModelAfterCreate("eventListSlotEntries").Add(func(e *core.ModelEvent) error {
app.OnModelAfterUpdate("eventListSlotEntries").Add(func(e *core.ModelEvent) error {
// send email notification
err := sendEmailNotification(app, e.Model.GetId(), "updated")
if err != nil {