change crud service
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
dmitriy.churmeev
2026-04-08 22:27:21 +03:00
parent 138ad908f0
commit b715214b2f

View File

@@ -20,7 +20,7 @@ class TestService(private val testEntityRepository: TestEntityRepository) {
fun update(model: TestModel): TestModel {
var entity = testEntityRepository.save(TestEntity(model.id, model.key, model.value))
return TestModel(null, entity.key, entity.value)
return TestModel(model.id, entity.key, entity.value)
}
fun get(id: Long): TestModel? {