Skip to content

Commit

Permalink
fix(model-server): @RequiresTransaction annotation to help avoiding M…
Browse files Browse the repository at this point in the history
…issingTransactionException
  • Loading branch information
slisson committed Dec 12, 2024
1 parent ed9bd6d commit cfebf70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class DiffView(private val repositoryManager: RepositoriesManager) {
requiresLogin {
get("/diff") {
@OptIn(RequiresTransaction::class)
call.respondHtmlTemplate(PageWithMenuBar("diff", "..")) {
call.respondHtmlTemplateInTransaction(repositoryManager.getTransactionManager(), PageWithMenuBar("diff", "..")) {
val visibleRepositories = repositoryManager.getRepositories().filter {
call.hasPermission(ModelServerPermissionSchema.repository(it).list)
}
Expand Down

0 comments on commit cfebf70

Please sign in to comment.