v0.0.449
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m15s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m15s
This commit is contained in:
@@ -95,7 +95,7 @@ func (c *Coll[TData]) WithUnmarshalHook(fn func(d TData) TData) *Coll[TData] {
|
||||
// WithMarshalHook
|
||||
// function that is called for every object before writing to DB
|
||||
func (c *Coll[TData]) WithMarshalHook(fn func(d TData) TData) *Coll[TData] {
|
||||
c.extraModPipeline = append(c.marshalHooks, fn)
|
||||
c.marshalHooks = append(c.marshalHooks, fn)
|
||||
|
||||
return c
|
||||
}
|
||||
|
Reference in New Issue
Block a user