Merge pull request #48 from InsanusMokrassar/0.4.27

0.4.27
This commit is contained in:
InsanusMokrassar 2021-02-23 13:09:04 +06:00 committed by GitHub
commit 14c5f5a26c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,7 @@
# Changelog
## 0.4.27
## 0.4.26
* `Versions`:

View File

@ -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

View File

@ -60,9 +60,11 @@ abstract class AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType>(
}
}.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
}