backend::service::seed

Function archive

source
pub async fn archive(
    id: i32,
    user_id: Uuid,
    archive_seed: ArchiveSeedDto,
    pool: &SharedPool,
) -> Result<SeedDto, ServiceError>
Expand description

Archive or unarchive a seed in the database.

ยงErrors

If the connection to the database could not be established.