Skip to main content

set_favorite

Function set_favorite 

Source
pub async fn set_favorite(
    pool: &PgPool,
    actor: &Actor,
    item_id: Uuid,
    on: bool,
) -> AppResult<()>
Expand description

Adds the item to the actor’s favorites (on) or removes it.