()
| 458 | } |
| 459 | |
| 460 | func (h *handler) handlePostUpgrade() error { |
| 461 | |
| 462 | preview := h.getBoolQuery("preview") |
| 463 | |
| 464 | postUpgradeResults, err := h.server.PostUpgrade(h.ctx(), preview) |
| 465 | if err != nil { |
| 466 | return err |
| 467 | } |
| 468 | |
| 469 | result := &PostUpgradeResponse{ |
| 470 | Result: postUpgradeResults, |
| 471 | Preview: preview, |
| 472 | } |
| 473 | |
| 474 | h.writeJSON(result) |
| 475 | base.Audit(h.ctx(), base.AuditIDPostUpgrade, base.AuditFields{base.AuditFieldPostUpgradePreview: preview}) |
| 476 | return nil |
| 477 | } |
| 478 | |
| 479 | func (h *handler) instanceStartTimeMicro() int64 { |
| 480 | return h.db.StartTime.UnixMicro() |
nothing calls this directly
no test coverage detected