fix: signature auditLogger.Log dans ResetModule
This commit is contained in:
parent
3bc55a4c6f
commit
18d060461c
1 changed files with 2 additions and 1 deletions
|
|
@ -579,6 +579,7 @@ func (h *SettingsHandler) ResetModule(w http.ResponseWriter, r *http.Request) {
|
||||||
JSONResponse(w, http.StatusNotFound, map[string]string{"error": "module introuvable ou module core"})
|
JSONResponse(w, http.StatusNotFound, map[string]string{"error": "module introuvable ou module core"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
h.auditLogger.Log(r.Context(), "repair.reset_module", id, "")
|
claims := GetClaims(r)
|
||||||
|
h.auditLogger.Log(&claims.UserID, claims.Username, "repair.reset_module", id, nil, clientIP(r))
|
||||||
JSONResponse(w, http.StatusOK, map[string]string{"message": "Module supprimé de la DB"})
|
JSONResponse(w, http.StatusOK, map[string]string{"message": "Module supprimé de la DB"})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue