Does not work: uploading images

Adding/Editing/Deleting works
SeasonsSelect works
Nice recipe layout
This commit is contained in:
2023-06-24 15:31:10 +02:00
parent 3d0d3f41e2
commit 9392ff6ada
25 changed files with 1150 additions and 209 deletions

View File

@ -16,16 +16,17 @@ const RecipeSchema = new mongoose.Schema(
description: {type: String, required: true},
tags : [String],
season : [Number],
baking: { temperature: String,
length: String,
mode: String,
baking: { temperature: {type:String, default: ""},
length: {type:String, default: ""},
mode: {type:String, default: ""},
},
preparation : String,
fermentation: {bulk: String,
final: String,
preparation : {type:String, default: ""},
fermentation: { bulk: {type:String, default: ""},
final: {type:String, default: ""},
},
portions : String,
total_time : String,
portions :{type:String, default: ""},
total_time : {type:String, default: ""},
ingredients : [ { name: {type: String, default: ""},
list: [{name: {type: String, default: ""},
unit: String,
@ -34,6 +35,7 @@ const RecipeSchema = new mongoose.Schema(
}],
instructions : [{name: {type: String, default: ""},
steps: [String]}],
preamble : String,
addendum : String,
},
);