Set organization ID in MCP task response
The NewTask type helper was not copying OrganizationID from the coredata Task, causing it to serialize as a zero-value GID. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -21,16 +21,17 @@ import (
|
|||||||
|
|
||||||
func NewTask(t *coredata.Task) *Task {
|
func NewTask(t *coredata.Task) *Task {
|
||||||
return &Task{
|
return &Task{
|
||||||
ID: t.ID,
|
ID: t.ID,
|
||||||
Name: t.Name,
|
OrganizationID: t.OrganizationID,
|
||||||
Description: t.Description,
|
Name: t.Name,
|
||||||
State: t.State,
|
Description: t.Description,
|
||||||
Priority: t.Priority,
|
State: t.State,
|
||||||
Rank: t.Rank,
|
Priority: t.Priority,
|
||||||
TimeEstimate: t.TimeEstimate,
|
Rank: t.Rank,
|
||||||
CreatedAt: t.CreatedAt,
|
TimeEstimate: t.TimeEstimate,
|
||||||
UpdatedAt: t.UpdatedAt,
|
CreatedAt: t.CreatedAt,
|
||||||
Deadline: t.Deadline,
|
UpdatedAt: t.UpdatedAt,
|
||||||
|
Deadline: t.Deadline,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user