Skip to content

Commit 0d7fb16

Browse files
fix[backend](compilance): added framework id on control status change
1 parent 1420e58 commit 0d7fb16

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

backend/modules/compliance/usecase/evaluator.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,11 @@ func (e *evaluator) SetStatusOverride(ctx context.Context, frameworkKey, control
128128
return domain.ErrInvalidStatus
129129
}
130130

131-
note:=domain.UtmComplianceControlNote{
131+
if err := e.notes.Upsert(ctx, &domain.UtmComplianceControlNote{
132+
FrameworkKey: frameworkKey,
132133
ControlID: controlID,
133-
Note: reason,
134-
}
135-
136-
err:=e.notes.Upsert(ctx,&note)
137-
if err!=nil{
134+
Note: reason,
135+
}); err != nil {
138136
return err
139137
}
140138

0 commit comments

Comments
 (0)