diff --git a/modules/structs/grouptasks.go b/modules/structs/grouptasks.go index a1bb224..c798337 100644 --- a/modules/structs/grouptasks.go +++ b/modules/structs/grouptasks.go @@ -20,6 +20,7 @@ type GroupTasks struct { Category string GroupId string GroupName string + Description string // user-specific description for faster retrieval CurrentTasksStep uint8 NumberOfSteps uint8 Status uint8 diff --git a/socketserver/hub.go b/socketserver/hub.go index 9188c0f..ffb768c 100644 --- a/socketserver/hub.go +++ b/socketserver/hub.go @@ -91,6 +91,7 @@ func RunHub() { Category: category, GroupId: groupId, GroupName: receivedMessage.Body["groupName"].(string), + Description: receivedMessage.Body["description"].(string), CurrentTasksStep: 1, NumberOfSteps: uint8(receivedMessage.Body["numberOfSteps"].(float64)), Status: structs.GroupTasksStatusRunning,