Skip to content

Commit 29b43c9

Browse files
committed
fix(model-server): add repository to the list after the first write
The v1 model client doesn't initialize a repository using the REST API, but just starts writing to a branch. This first write should add the repository to the list returned by the REST API, which wasn't the case.
1 parent ebefec0 commit 29b43c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

model-server/src/main/kotlin/org/modelix/model/server/handlers/RepositoriesManager.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class RepositoriesManager(val client: LocalModelClient) {
165165
mergedVersion.hash
166166
}
167167
putVersionHash(branch, mergedHash)
168+
ensureRepositoriesAreInList(setOf(branch.repositoryId))
168169
ensureBranchesAreInList(branch.repositoryId, setOf(branch.branchName))
169170
result = mergedHash
170171
}

0 commit comments

Comments
 (0)