fix: call proper method to get entity id

This commit is contained in:
2025-10-31 08:38:45 +01:00
parent 7398de4559
commit 7446f0db1c

View File

@@ -70,7 +70,7 @@
//!
//! fn try_from(entity: Entity) -> Result<Self, Self::Error> {
//! Ok(Self {
//! id: entity.id.clone(),
//! id: entity.id(),
//! name: entity.unwrap("name").map_err(|_| FailedTo::ConvertEntity)?,
//! price: entity.unwrap("price").map_err(|_| FailedTo::ConvertEntity)?,
//! in_stock: entity.unwrap("in_stock").map_err(|_| FailedTo::ConvertEntity)?,