Skip to main content

storage_toggle_favorite

Function storage_toggle_favorite 

Source
pub async fn storage_toggle_favorite(
    db: State<'_, DatabaseWrapper>,
    user_id: String,
    item_id: String,
    is_favorite: bool,
) -> Result<bool, String>
Expand description

Toggle favorite status for an item in local database This updates the is_favorite field and marks it for sync to Jellyfin