backend::service::map_collaborator

Function delete

source
pub async fn delete(
    map_and_dto: (i32, DeleteMapCollaboratorDto),
    user_id: Uuid,
    pool: &SharedPool,
) -> Result<(), ServiceError>
Expand description

Remove a collaborator from a map.

ยงErrors

  • If the user is not the creator of the map.
  • If the connection to the database could not be established.
  • If the connection to the Keycloak API could not be established.