Skip to content

Commit

Permalink
refactor(store.go): change var to const for PreInsert hook to ensure …
Browse files Browse the repository at this point in the history
…its value remains immutable
  • Loading branch information
bounoable committed Sep 24, 2023
1 parent 36cb215 commit 7c8e419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/mongo/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/modernice/goes/helper/pick"
)

var (
const (
// PreInsert represents a hook that is executed before inserting events into the
// EventStore. This allows for additional operations to be performed within the
// same transaction, such as validation or transformation of data. The hook
Expand Down

0 comments on commit 7c8e419

Please sign in to comment.