From 498ec673dc69dd771cc0816279052a54f902ce75 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 23 Feb 2021 12:50:55 +0600 Subject: [PATCH 1/2] start 0.4.27 --- CHANGELOG.md | 2 ++ gradle.properties | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) 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 From b26a4f24d4f7ff2ed8ac3564a2a89931af4b0873 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Tue, 23 Feb 2021 12:51:13 +0600 Subject: [PATCH 2/2] fix in AbstractExposedWriteCRUDRepo --- .../repos/exposed/AbstractExposedWriteCRUDRepo.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 }