Skip to content

Commit 543138b

Browse files
committed
update index name of job and flow yml
1 parent 88ee521 commit 543138b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/java/com/flowci/core/flow/domain/FlowYml.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class FlowYml extends Mongoable {
5353

5454
public final static String DEFAULT_NAME = ".flowci.yml";
5555

56-
@Indexed(name = "index_flow_id", unique = true)
56+
@Indexed(name = "index_yml_flow_id", unique = true)
5757
private String flowId;
5858

5959
private List<SimpleYml> list;

core/src/main/java/com/flowci/core/job/domain/Job.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public static Pathable path(Long buildNumber) {
205205
@Indexed(name = "index_job_key", unique = true)
206206
private String key;
207207

208-
@Indexed(name = "index_flow_id", partialFilter = "{ flowId: {$exists: true} }")
208+
@Indexed(name = "index_job_flow_id", partialFilter = "{ flowId: {$exists: true} }")
209209
private String flowId;
210210

211211
private String flowName;

0 commit comments

Comments
 (0)