Skip to content
Snippets Groups Projects
Verified Commit 85f91de3 authored by Jan-Niclas Strüwer's avatar Jan-Niclas Strüwer
Browse files

fixed incorrect transactional import

parent a076e59f
No related branches found
No related tags found
No related merge requests found
Pipeline #27328 canceled
......@@ -9,8 +9,8 @@ import de.fraunhofer.iem.dataprovider.toolRun.entity.LanguageEntity
import de.fraunhofer.iem.dataprovider.toolRun.entity.ToolRunEntity
import de.fraunhofer.iem.dataprovider.toolRun.repository.LanguageRepository
import de.fraunhofer.iem.dataprovider.toolRun.repository.ToolRunRepository
import jakarta.transaction.Transactional
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Transactional
@Service
class ToolRunDbService(
......@@ -56,6 +56,7 @@ class ToolRunDbService(
//TODO: this should return a create tool run dto
@Transactional(readOnly = true)
fun getToolRunByProjectId(projectId: Long): ToolRunEntity {
return toolRunRepository.findFirstByRepository_ProjectIdOrderByCreatedAtDesc(projectId)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.