backend::service::map

Function update_geometry

source
pub async fn update_geometry(
    map_update_geometry: UpdateMapGeometryDto,
    id: i32,
    user_id: Uuid,
    pool: &SharedPool,
) -> Result<MapDto, ServiceError>
Expand description

Update a maps geometry in the database. Checks if the map is owned by the requesting user.

ยงErrors

  • If the connection to the database could not be established.
  • If the requesting user is not the owner of the map.