Skip to content

Commit 550ef12

Browse files
committed
fix flow yml index and job yml bug
1 parent 543138b commit 550ef12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
@AllArgsConstructor
4444
@CompoundIndexes(
4545
@CompoundIndex(
46-
name = "index_yml_name",
47-
def = "{'list.name': 1}",
46+
name = "index_flow_id_and_yml_name",
47+
def = "{'flowId': 1, 'list.name': 1}",
4848
sparse = true,
4949
unique = true
5050
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public String[] getRawArray() {
6161
var array = new String[list.size()];
6262
int i = 0;
6363
for (var body : list) {
64-
array[i] = StringHelper.fromBase64(body.getRawInB64());
64+
array[i++] = StringHelper.fromBase64(body.getRawInB64());
6565
}
6666
return array;
6767
}

0 commit comments

Comments
 (0)