Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
trackerquery id
Browse files Browse the repository at this point in the history
  • Loading branch information
DhritiShikhar committed Dec 3, 2018
1 parent 52f21f9 commit c1513f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/trackerquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ func (c *TrackerqueryController) Create(ctx *app.CreateTrackerqueryContext) erro
SpaceID: *ctx.Payload.Data.Relationships.Space.Data.ID,
WorkItemTypeID: ctx.Payload.Data.Relationships.BaseType.Data.ID,
}
trackerQuery.ID = *ctx.Payload.Data.ID
if ctx.Payload.Data.ID != nil {
trackerQuery.ID = *ctx.Payload.Data.ID
}
tq, err := appl.TrackerQueries().Create(ctx.Context, trackerQuery)
if err != nil {
return errs.Wrapf(err, "failed to create tracker query %s", ctx.Payload.Data)
Expand Down

0 comments on commit c1513f2

Please sign in to comment.