Function backend::service::plantings::create

source ·
pub async fn create(
    dtos: Vec<PlantingDto>,
    map_id: i32,
    user_id: Uuid,
    app_data: &Data<AppDataInner>,
) -> Result<Vec<PlantingDto>, ServiceError>
Expand description

Create a new planting in the database.

§Errors

If the connection to the database could not be established.