From dc1607b998d8e4d933ae1ab1bf65ede0a9341e53 Mon Sep 17 00:00:00 2001 From: akash-sachan Date: Thu, 11 May 2023 18:44:43 +0530 Subject: [PATCH] test fix afterfind --- types/incidents/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/incidents/database.go b/types/incidents/database.go index 5af1cb07..3135c650 100644 --- a/types/incidents/database.go +++ b/types/incidents/database.go @@ -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") }