(in []byte)
| 531 | } |
| 532 | |
| 533 | func bytesToInterface(in []byte) any { |
| 534 | var out any |
| 535 | if len(in) > 0 { |
| 536 | err := json.Unmarshal(in, &out) |
| 537 | if err != nil { |
| 538 | logs.Warn.Println("pbx: failed to parse bytes", string(in), err) |
| 539 | } |
| 540 | } |
| 541 | return out |
| 542 | } |
| 543 | |
| 544 | func timeToInt64(ts *time.Time) int64 { |
| 545 | if ts != nil { |
no test coverage detected
searching dependent graphs…