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

Method Note

models/status.go:135–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 VotesCount int `gorm:"not null;default:0"`
134 Options []StatusPollOption `gorm:"constraint:OnDelete:CASCADE;"`
135}
136
137func (st *StatusPoll) AfterCreate(tx *gorm.DB) error {
138 return forEach(tx, st.updateVotesCount)
139}
140

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected