add missing secretId to audit logs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-17 14:40:36 +11:00
parent 1d1aa098a9
commit bb3bf3093d
2 changed files with 4 additions and 10 deletions

View File

@@ -162,6 +162,7 @@ func retrieveSpecifiedSecret(s *models.Secret, c *gin.Context) {
// Create audit record
a := models.Audit{
UserId: UserId,
SecretId: results[0].SecretId,
EventText: fmt.Sprintf("Retrieved Secret Id %d", results[0].SecretId),
}
a.AutidLogAdd()