MCPcopy Create free account
hub / github.com/davecheney/pub / BeforeUpdate

Method BeforeUpdate

models/reaction.go:26–28  ·  view source on GitHub ↗
(tx *gorm.DB)

Source from the content-addressed store, hash-verified

24
25func (r *Reaction) BeforeUpdate(tx *gorm.DB) error {
26 return forEach(tx, r.createReactionRequest)
27}
28
29func (r *Reaction) AfterSave(tx *gorm.DB) error {
30 return forEach(tx, r.updateStatusCount)
31}

Callers

nothing calls this directly

Calls 1

forEachFunction · 0.70

Tested by

no test coverage detected