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

This commit is contained in:
2024-01-09 22:01:12 +11:00
parent 391d806c13
commit 9c2ff979fb

View File

@@ -31,7 +31,7 @@ type Secret struct {
// Since there are some ambiguous column names (eg UserName is present in both users and secrets table), the order of fields in this struct matters
type UserSecret struct {
Secret
UserId int `db:"UserUserId"`
UserUserId int `db:"UserUserId"`
User
//Group
Permission
@@ -133,6 +133,9 @@ func SecretsGetAllowed(s *Secret, userId int) ([]UserSecret, error) {
return secretResults, err
}
//log.Printf("r: %v\n", r)
// work around to get the UserId populated in the User field of the struct
r.User.UserId = r.UserUserId
debugPrint := utils.PrintStructContents(&r, 0)
log.Println(debugPrint)