backend::service::map

Function create

source
pub async fn create(
    new_map: NewMapDto,
    user_id: Uuid,
    pool: &SharedPool,
) -> Result<MapDto, ServiceError>
Expand description

Create a new map in the database.

ยงErrors

If the connection to the database could not be established.