Skip to content

Commit b482888

Browse files
committed
fix upo index for status
Signed-off-by: Neil South <[email protected]>
1 parent 414bd7e commit b482888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WorkflowManager/Database/Repositories/TasksRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private static async Task EnsureIndex(IMongoCollection<WorkflowInstance> workflo
6868
Name = "TasksIndex"
6969
};
7070
var model = new CreateIndexModel<WorkflowInstance>(
71-
Builders<WorkflowInstance>.IndexKeys.Ascending(s => s.Tasks),
71+
Builders<WorkflowInstance>.IndexKeys.Ascending($"{nameof(WorkflowInstance.Tasks)}.{nameof(Task.Status)}"),
7272
options
7373
);
7474

0 commit comments

Comments
 (0)