Replace ValuePointer function with custom conversion (#121)

This commit is contained in:
Vicente Pinto 2023-11-02 15:28:06 +00:00 committed by GitHub
parent b10302c6de
commit b6100ec8d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 221 additions and 191 deletions

View file

@ -438,7 +438,7 @@ func toCreatePayload(model *Model, roles []string) (*mongodbflex.CreateUserPaylo
return &mongodbflex.CreateUserPayload{
Roles: &roles,
Username: model.Username.ValueStringPointer(),
Database: model.Database.ValueStringPointer(),
Username: core.StringValueToPointer(model.Username),
Database: core.StringValueToPointer(model.Database),
}, nil
}