public/Get-FavoriteRecipe.ps1
|
function Get-FavoriteRecipe { [CmdletBinding()] param( [int]$Limit = 6 ) Invoke-RecipeDbQuery -Query @" SELECT RecipeId, Title, PrepTimeMin, CookTimeMin, Servings, FavoritedAt, UpdatedAt FROM Recipes WHERE IsFavorite = 1 ORDER BY FavoritedAt DESC, UpdatedAt DESC LIMIT $Limit; "@ } |