Replace ValuePointer function with custom conversion (#121)
This commit is contained in:
parent
b10302c6de
commit
b6100ec8d5
21 changed files with 221 additions and 191 deletions
|
|
@ -328,7 +328,7 @@ func toCreatePayload(model *Model) (*objectstorage.CreateAccessKeyPayload, error
|
|||
return &objectstorage.CreateAccessKeyPayload{}, nil
|
||||
}
|
||||
|
||||
expirationTimestampValue := model.ExpirationTimestamp.ValueStringPointer()
|
||||
expirationTimestampValue := core.StringValueToPointer(model.ExpirationTimestamp)
|
||||
if expirationTimestampValue == nil {
|
||||
return &objectstorage.CreateAccessKeyPayload{}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue