From 7b4c84bdfc4d7ff2f9f3a2d5c2d4698384adc6b8 Mon Sep 17 00:00:00 2001 From: valentinkolb Date: Fri, 8 Nov 2024 15:53:57 +0100 Subject: [PATCH] fix(eventEntriesNotification): corrected handler bug --- eventEntriesNotifier/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {