This commit is contained in:
parent
e7b2a47cab
commit
081145f900
1 changed files with 1 additions and 1 deletions
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue