mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-11 14:33:19 +00:00
fix in AbstractExposedWriteCRUDRepo
This commit is contained in:
1 parent
498ec673dc
commit
b26a4f24d4
1 file changed
+5
-3
+5
-3
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user