mirror of
https://github.com/datarhei/core.git
synced 2025-09-26 20:11:29 +08:00
Add updated_at field in process infos
This commit is contained in:
@@ -14,6 +14,7 @@ type Process struct {
|
||||
Type string `json:"type" jsonschema:"enum=ffmpeg"`
|
||||
Reference string `json:"reference"`
|
||||
CreatedAt int64 `json:"created_at" jsonschema:"minimum=0" format:"int64"`
|
||||
UpdatedAt int64 `json:"updated_at" jsonschema:"minimum=0" format:"int64"`
|
||||
Config *ProcessConfig `json:"config,omitempty"`
|
||||
State *ProcessState `json:"state,omitempty"`
|
||||
Report *ProcessReport `json:"report,omitempty"`
|
||||
|
@@ -544,6 +544,7 @@ func (h *RestreamHandler) getProcess(id, filterString string) (api.Process, erro
|
||||
Reference: process.Reference,
|
||||
Type: "ffmpeg",
|
||||
CreatedAt: process.CreatedAt,
|
||||
UpdatedAt: process.UpdatedAt,
|
||||
}
|
||||
|
||||
if wants["config"] {
|
||||
|
Reference in New Issue
Block a user