backend::service::timeline

Function calculate

source
pub async fn calculate(
    map_id: i32,
    params: TimelineParameters,
    pool: &SharedPool,
) -> Result<TimelineDto, ServiceError>
Expand description

Summarizes the all additions and removals of plantings between params.start and params.end.

ยงErrors

If the connection to the database could not be established.