Fix posture check name uniqueness per account

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
bcmmbaga
2024-10-01 01:06:52 +03:00
parent 1a37b12d1b
commit f43a006c34
3 changed files with 25 additions and 6 deletions
@@ -170,6 +170,7 @@ func (p *PostureChecksHandler) savePostureChecks(w http.ResponseWriter, r *http.
util.WriteError(r.Context(), err, w)
return
}
postureChecks.AccountID = accountID
if err := p.accountManager.SavePostureChecks(r.Context(), accountID, userID, postureChecks, isUpdate); err != nil {
util.WriteError(r.Context(), err, w)