pub async fn find_by_id(
id: i32,
pool: &SharedPool,
) -> Result<PlantsSummaryDto, ServiceError>
Expand description
Find the plant by id from the database.
ยงErrors
If the connection to the database could not be established.
pub async fn find_by_id(
id: i32,
pool: &SharedPool,
) -> Result<PlantsSummaryDto, ServiceError>
Find the plant by id from the database.
If the connection to the database could not be established.