MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / Sanitize

Method Sanitize

api/pkg/requests/user_update_request.go:20–24  ·  view source on GitHub ↗

Sanitize sets defaults to MessageOutstanding

()

Source from the content-addressed store, hash-verified

18
19// Sanitize sets defaults to MessageOutstanding
20func (input *UserUpdate) Sanitize() UserUpdate {
21 input.ActivePhoneID = strings.TrimSpace(input.ActivePhoneID)
22 input.Timezone = strings.TrimSpace(input.Timezone)
23 return *input
24}
25
26// ToUpdateParams converts UserUpdate to services.UserUpdateParams
27func (input *UserUpdate) ToUpdateParams() services.UserUpdateParams {

Callers 1

UpdateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected