From 1b85ce0d785df911603a253e54b37c722d37b9cb Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 10 Feb 2026 05:28:23 +0000 Subject: [PATCH] Actually commit changes to notifications --- rmo/notification.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rmo/notification.go b/rmo/notification.go index 5da2d635..d2cec9f8 100644 --- a/rmo/notification.go +++ b/rmo/notification.go @@ -40,6 +40,7 @@ func postRegisterNotifications(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, fmt.Sprintf("/error?code=transaction-failed&report=%s", report_id), http.StatusFound) return } + defer txn.Rollback(ctx) e := report.SaveReporter(ctx, txn, report_id, name, email, phone, has_consent) if e != nil { log.Error().Err(e).Str("name", name).Msg("Failed to save reporter") @@ -78,5 +79,6 @@ func postRegisterNotifications(w http.ResponseWriter, r *http.Request) { } } } + txn.Commit(ctx) http.Redirect(w, r, fmt.Sprintf("/register-notifications-complete?report=%s", report_id), http.StatusFound) }