diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b018a35b77..0dc7a00b969 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 0.4.27 + ## 0.4.26 * `Versions`: diff --git a/gradle.properties b/gradle.properties index 047c3719703..9f8ad7e19c9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -44,5 +44,5 @@ dokka_version=1.4.20 # Project data group=dev.inmo -version=0.4.26 -android_code_version=30 +version=0.4.27 +android_code_version=31 diff --git a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt index ffbd69f2e5a..afdaa115286 100644 --- a/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt +++ b/repos/exposed/src/jvmMain/kotlin/dev/inmo/micro_utils/repos/exposed/AbstractExposedWriteCRUDRepo.kt @@ -60,9 +60,11 @@ abstract class AbstractExposedWriteCRUDRepo( } }.let { if (it > 0) { - select { - selectById(this, id) - }.limit(1).firstOrNull() ?.asObject + transaction(db = database) { + select { + selectById(this, id) + }.limit(1).firstOrNull() ?.asObject + } } else { null }