Skip to content

Commit

Permalink
fix issue with launches merge
Browse files Browse the repository at this point in the history
  • Loading branch information
avarabyeu committed Apr 15, 2019
1 parent 5571f28 commit 10c7e1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
6 changes: 1 addition & 5 deletions cli/launch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ package cli
import (
"errors"
"fmt"
"strings"
"time"

"github.com/avarabyeu/goRP/gorp"
"gopkg.in/urfave/cli.v1"
"strings"
)

var (
Expand Down Expand Up @@ -85,8 +83,6 @@ func mergeLaunches(c *cli.Context) error {
Name: c.String("name"),
MergeType: gorp.MergeType(c.String("type")),
Launches: ids,
StartTime: gorp.Timestamp{Time: time.Now().Add(-10 * time.Hour)},
EndTime: gorp.Timestamp{Time: time.Now().Add(-1 * time.Minute)},
}
launchResource, err := rpClient.MergeLaunches(rq)
if err != nil {
Expand Down
18 changes: 9 additions & 9 deletions gorp/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ type (

//MergeLaunchesRQ payload representation
MergeLaunchesRQ struct {
Description string `json:"description,omitempty"`
StartTime Timestamp `json:"start_time,omitempty"`
EndTime Timestamp `json:"end_time,omitempty"`
ExtendSuitesDescription bool `json:"extendSuitesDescription,omitempty"`
Launches []string `json:"launches"`
MergeType MergeType `json:"merge_type,omitempty"`
Mode string `json:"mode,omitempty"`
Tags []string `json:"tags,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
StartTime *Timestamp `json:"start_time,omitempty"`
EndTime *Timestamp `json:"end_time,omitempty"`
ExtendSuitesDescription bool `json:"extendSuitesDescription,omitempty"`
Launches []string `json:"launches"`
MergeType MergeType `json:"merge_type,omitempty"`
Mode string `json:"mode,omitempty"`
Tags []string `json:"tags,omitempty"`
Name string `json:"name,omitempty"`
}

//StartRQ payload representation
Expand Down

0 comments on commit 10c7e1e

Please sign in to comment.