Skip to content

Commit

Permalink
Always provide statuses.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 23, 2024
1 parent 54e0ba2 commit 1f1bf68
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,18 @@ public static async Task<ContentsDto> FromContentsAsync(IResultList<EnrichedCont

if (schema != null)
{
await result.AssignStatusesAsync(workflow, schema);
await result.CreateStatusesAsync(workflow, schema);
await result.CreateLinksAsync(resources, workflow, schema);
}
else
{
result.Statuses = [];
}

return result;
}

private async Task AssignStatusesAsync(IContentWorkflow workflow, Schema schema)
private async Task CreateStatusesAsync(IContentWorkflow workflow, Schema schema)
{
var allStatuses = await workflow.GetAllAsync(schema);

Expand Down

0 comments on commit 1f1bf68

Please sign in to comment.