From 081145f900ff5dd41e9b951d3689c986e4d2e833 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 2 Jan 2026 09:37:31 -0800 Subject: [PATCH] fix async dependancy --- backend/src/models/recipeModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/models/recipeModel.ts b/backend/src/models/recipeModel.ts index a46f67f..95f09c8 100644 --- a/backend/src/models/recipeModel.ts +++ b/backend/src/models/recipeModel.ts @@ -191,7 +191,7 @@ class RecipeModel { async deleteRecipe(id: number): Promise<{ message: string }> { try { - this.deleteRecipeData(id); + await this.deleteRecipeData(id); const deletedRecipe = await this.prisma.recipes.delete({ where: { id }, });