From bbd32b44e9abdb64a82eb53bfe5341f25ab000a8 Mon Sep 17 00:00:00 2001 From: Samuel Lucidi Date: Fri, 27 Oct 2023 14:59:23 -0400 Subject: [PATCH] :ghost: Preload Archetype assessment stakeholder relations (#548) This was missed in the original PR. #544 Signed-off-by: Sam Lucidi --- api/archetype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/archetype.go b/api/archetype.go index 7f8c4c034..7ea3eaa46 100644 --- a/api/archetype.go +++ b/api/archetype.go @@ -248,7 +248,7 @@ func (h ArchetypeHandler) Update(ctx *gin.Context) { func (h ArchetypeHandler) AssessmentList(ctx *gin.Context) { m := &model.Archetype{} id := h.pk(ctx) - db := h.preLoad(h.DB(ctx), clause.Associations) + db := h.preLoad(h.DB(ctx), clause.Associations, "Assessments.Stakeholders", "Assessments.StakeholderGroups") result := db.First(m, id) if result.Error != nil { _ = ctx.Error(result.Error)