test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-09 11:30:13 +11:00
parent 143e402dd6
commit e5764553d8
2 changed files with 3 additions and 1 deletions

View File

@@ -217,6 +217,7 @@ func UpdateSecret(c *gin.Context) {
} }
*/ */
user_id := c.GetInt("user-id") user_id := c.GetInt("user-id")
log.Printf("user_id: %v\n", user_id)
// Populate fields // Populate fields
s := models.Secret{} s := models.Secret{}

View File

@@ -74,6 +74,7 @@ func SecretsGetAllowedForGroup(s *Secret, userId int) ([]UserSecret, error) {
INNER JOIN secrets on secrets.SafeId = safes.SafeId INNER JOIN secrets on secrets.SafeId = safes.SafeId
WHERE users.UserId = ? ` WHERE users.UserId = ? `
queryArgs = append(queryArgs, userId) queryArgs = append(queryArgs, userId)
log.Printf("queryArgs: %v\n", queryArgs)
// Make sure at least one parameter was specified // Make sure at least one parameter was specified
if s.DeviceName == "" && s.DeviceCategory == "" && s.UserName == "" { if s.DeviceName == "" && s.DeviceCategory == "" && s.UserName == "" {