(ctx context.Context, userID uuid.UUID)
| 902 | } |
| 903 | |
| 904 | func (db *dbCrypt) ListUserSecretsWithValues(ctx context.Context, userID uuid.UUID) ([]database.UserSecret, error) { |
| 905 | secrets, err := db.Store.ListUserSecretsWithValues(ctx, userID) |
| 906 | if err != nil { |
| 907 | return nil, err |
| 908 | } |
| 909 | for i := range secrets { |
| 910 | if err := db.decryptField(&secrets[i].Value, secrets[i].ValueKeyID); err != nil { |
| 911 | return nil, err |
| 912 | } |
| 913 | } |
| 914 | return secrets, nil |
| 915 | } |
| 916 | |
| 917 | func (db *dbCrypt) UpdateUserSecretByUserIDAndName(ctx context.Context, arg database.UpdateUserSecretByUserIDAndNameParams) (database.UserSecret, error) { |
| 918 | if arg.UpdateValue { |
nothing calls this directly
no test coverage detected