Skip to content

Commit

Permalink
🐛 Fix typo in AssessmentList preload (#547)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam committed Oct 27, 2023
1 parent 4721a39 commit 5df7718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ func (h ApplicationHandler) StakeholdersUpdate(ctx *gin.Context) {
func (h ApplicationHandler) AssessmentList(ctx *gin.Context) {
m := &model.Application{}
id := h.pk(ctx)
db := h.preLoad(h.DB(ctx), clause.Associations, "Assessments.Stakeholders", "Assessments.Stakeholders")
db := h.preLoad(h.DB(ctx), clause.Associations, "Assessments.Stakeholders", "Assessments.StakeholderGroups")
db = db.Omit("Analyses")
result := db.First(m, id)
if result.Error != nil {
Expand Down

0 comments on commit 5df7718

Please sign in to comment.