Function backend::service::seed::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.