backend::service::plantings

Function find_by_seed_id

source
pub async fn find_by_seed_id(
    seed_id: i32,
    pool: &SharedPool,
) -> Result<Vec<PlantingDto>, ServiceError>
Expand description

Get all plantings that have a specific seed id. Also returns a plantings map id.

ยงErrors

If the connection to the database could not be established.