Skip to content

Commit 138b2a6

Browse files
committed
chore(apps): drop an unused app lookup
1 parent 6f0121e commit 138b2a6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

backend/data/src/main/kotlin/io/tolgee/service/apps/AppService.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ class AppService(
5252
return appRepository.findByAppId(appId) ?: throw AppNotRegisteredException(appId)
5353
}
5454

55-
@Transactional(readOnly = true)
56-
fun get(appEntityId: Long): App {
57-
return appRepository.findById(appEntityId).orElseThrow { NotFoundException(Message.APP_NOT_FOUND) }
58-
}
59-
6055
/**
6156
* The app, provided [organizationId] owns it. An organization that merely installed somebody
6257
* else's app must not reach it here — administering an app is the owner's alone.

0 commit comments

Comments
 (0)