diff --git a/eventEntriesNotifier/main.go b/eventEntriesNotifier/main.go index 124d6dc..f246548 100644 --- a/eventEntriesNotifier/main.go +++ b/eventEntriesNotifier/main.go @@ -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 {