Sanitize sets defaults to MessageOutstanding
()
| 17 | |
| 18 | // Sanitize sets defaults to MessageOutstanding |
| 19 | func (input *HeartbeatStore) Sanitize() HeartbeatStore { |
| 20 | input.Owner = input.sanitizeAddress(input.Owner) |
| 21 | |
| 22 | input.PhoneNumbers = input.sanitizeAddresses(input.PhoneNumbers) |
| 23 | if len(input.PhoneNumbers) == 0 { |
| 24 | input.PhoneNumbers = append(input.PhoneNumbers, input.Owner) |
| 25 | } |
| 26 | |
| 27 | return *input |
| 28 | } |
| 29 | |
| 30 | // ToStoreParams converts HeartbeatIndex to repositories.IndexParams |
| 31 | func (input *HeartbeatStore) ToStoreParams(user entities.AuthContext, source string, version string) []services.HeartbeatStoreParams { |
no test coverage detected