Function backend::service::layer::assert_all_layers_on_map
source · async fn assert_all_layers_on_map(
map_id: i32,
layer_ids: &[Uuid],
conn: &mut AsyncPgConnection
) -> Result<(), ServiceError>
Expand description
Helper that returns an error in case layer_ids
isn’t exactly
the set of all non-deleted layers on the map.
Errors
If the connection to the database could not be established.