Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
fix(sourcecode): fix class order issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 9, 2022
1 parent d172bf8 commit 9ee6368
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -573,7 +573,7 @@ class ClassRepository(systemId: String, language: String, workspace: String) {
return batch.findId(table, keys)
}

private fun flush() {
fun flush() {
batch.execute()
}

Expand Down
Expand Up @@ -105,6 +105,9 @@ class Runner : CliktCommand(help = "scan git to sql") {
repo.saveClassItem(data)
}

// fix for different order in class and depClass
repo.flush()

// save class imports, callees and parent
dataStructs.forEach { data ->
repo.saveClassBody(data)
Expand Down

0 comments on commit 9ee6368

Please sign in to comment.