Function backend::service::map::delete_by_id

source ·
pub async fn delete_by_id(
    id: i32,
    user_id: Uuid,
    app_data: &Data<AppDataInner>,
) -> Result<MapDto, ServiceError>
Expand description

Soft-deletes a map from 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.