Skip to main content

TaskModelsToTaskDetailsWithoutIdentity

Converts a slice of models.Task objects to a slice of task.TaskDetails objects, without identity enrichment.

def TaskModelsToTaskDetailsWithoutIdentity(
ctx: context.Context,
taskModels: []*models.Task
) - > ([]*task.TaskDetails, error)

Converts a slice of task models into a slice of task details without enriching them with identity information. This function is a wrapper around TaskModelsToTaskDetails, specifically designed for scenarios where identity enrichment is not yet implemented or desired.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and deadlines.
taskModels[]*models.TaskA slice of task models to be converted into task details.

Returns

TypeDescription
([]*task.TaskDetails, error)A slice of task details and an error if the conversion fails.