feat(shopping): removeRecipeFromCart
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 2m27s
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 2m27s
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user