Skip to content

Commit

Permalink
fix(server): typo in timeline value type
Browse files Browse the repository at this point in the history
  • Loading branch information
pyshx committed Oct 28, 2023
1 parent dcbe9d1 commit 9d33b49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/pkg/builtin/manifest.yml
Expand Up @@ -2492,7 +2492,7 @@ extensions:
min: 0
max: 100
- id: default
title: Timeline
title: Timeline Setting
fields:
- id: timelineSetting
type: timeline
Expand Down
4 changes: 2 additions & 2 deletions server/pkg/property/value_timeline.go
Expand Up @@ -9,7 +9,7 @@ var ValueTypeTimeline = ValueType("timeline")
type Timeline struct {
CurrentTime *string `json:"currentTime" mapstructure:"currentTime"`
StartTime *string `json:"startTime" mapstructure:"startTime"`
EndTime *string `json:"stopTime" mapstructure:"stopTime"`
EndTime *string `json:"endTime" mapstructure:"endTime"`
}

func (c *Timeline) Clone() *Timeline {
Expand Down Expand Up @@ -73,7 +73,7 @@ func (p *typePropertyTimeline) JSONSchema() map[string]any {
"startTime": map[string]any{
"type": "number",
},
"stopTime": map[string]any{
"endTime": map[string]any{
"type": "number",
},
},
Expand Down

0 comments on commit 9d33b49

Please sign in to comment.