backend::service::plantings

Function update

source
pub async fn update(
    dto: UpdatePlantingDto,
    map_id: i32,
    user_id: Uuid,
    pool: &SharedPool,
) -> Result<Vec<PlantingDto>, ServiceError>
Expand description

Update the planting in the database.

ยงErrors

If the connection to the database could not be established.