fix in AbstractExposedWriteCRUDRepo

This commit is contained in:
InsanusMokrassar 2021-02-23 12:51:13 +06:00
parent 498ec673dc
commit b26a4f24d4

View File

@ -60,9 +60,11 @@ abstract class AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType>(
} }
}.let { }.let {
if (it > 0) { if (it > 0) {
transaction(db = database) {
select { select {
selectById(this, id) selectById(this, id)
}.limit(1).firstOrNull() ?.asObject }.limit(1).firstOrNull() ?.asObject
}
} else { } else {
null null
} }