feat(shopping): removeRecipeFromCart
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 2m27s

This commit is contained in:
hsiegeln
2026-04-21 22:56:26 +02:00
parent 95ba14ad6f
commit 83fe95ac76
2 changed files with 26 additions and 2 deletions

View File

@@ -47,8 +47,11 @@ export function addRecipeToCart(
).run(recipeId, resolved, profileId);
}
export function removeRecipeFromCart(_db: Database.Database, _recipeId: number): void {
throw new Error('not implemented');
export function removeRecipeFromCart(
db: Database.Database,
recipeId: number
): void {
db.prepare('DELETE FROM shopping_cart_recipe WHERE recipe_id = ?').run(recipeId);
}
export function setCartServings(