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 {
if (it > 0) {
transaction(db = database) {
select {
selectById(this, id)
}.limit(1).firstOrNull() ?.asObject
}
} else {
null
}