improve copying

This commit is contained in:
Denis Savosin
2024-10-03 13:23:01 +07:00
parent 9ded10a9ac
commit 690e265eb4
2 changed files with 0 additions and 12 deletions

View File

@@ -51,11 +51,6 @@ class CityServiceImpl(
} }
val deletedCity = city.copy( val deletedCity = city.copy(
id = city.id!!,
guid = city.guid,
name = city.name,
createdAt = city.createdAt,
updatedAt = city.updatedAt,
deletedAt = OffsetDateTime.now(), deletedAt = OffsetDateTime.now(),
) )

View File

@@ -42,13 +42,6 @@ class ProductServiceImpl(
} }
val deletedProduct = product.copy( val deletedProduct = product.copy(
id = product.id!!,
guid = product.guid,
name = product.name,
description = product.description,
price = product.price,
createdAt = product.createdAt,
updatedAt = product.updatedAt,
deletedAt = OffsetDateTime.now(), deletedAt = OffsetDateTime.now(),
) )