Function backend::service::layer::assert_layer_on_map
source · async fn assert_layer_on_map(
map_id: i32,
layer_id: Uuid,
conn: &mut AsyncPgConnection,
) -> Result<(), ServiceError>
Expand description
Helper that returns an error if the given layer is not on the map.
§Errors
If the connection to the database could not be established.