Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
func
(r *Reaction) BeforeUpdate(tx *gorm.DB) error {
26
return
forEach(tx, r.createReactionRequest)
27
}
28
29
func
(r *Reaction) AfterSave(tx *gorm.DB) error {
30
return
forEach(tx, r.updateStatusCount)
31
}
Callers
nothing calls this directly
Calls
1
forEach
Function · 0.70
Tested by
no test coverage detected