mirror of https://github.com/statping/statping
test fix afterfind
parent
2f4c518705
commit
dc1607b998
|
@ -34,7 +34,7 @@ func (i *Incident) BeforeCreate() error {
|
|||
}
|
||||
|
||||
func (i *Incident) AfterFind() {
|
||||
db.Model(i).Related(&i.Updates).Order("created_at DESC")
|
||||
db.Model(i).Related(i.Updates).Order("created_at DESC")
|
||||
metrics.Query("incident", "find")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue