backend::service::blossoms

Function gain

source
pub async fn gain(
    gained_blossom: GainedBlossomsDto,
    user_id: Uuid,
    pool: &SharedPool,
) -> Result<GainedBlossomsDto, ServiceError>
Expand description

The user gains the specified Blossom.

ยงErrors

If the connection to the database could not be established.