Przeglądaj źródła

Give recipe category a default value.

Lee Morgan 5 lat temu
rodzic
commit
28509da8d0
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      models/recipe.js

+ 1 - 1
models/recipe.js

@@ -25,7 +25,7 @@ const RecipeSchema = new mongoose.Schema({
     },
     category: {
         type: String,
-        required: false
+        default: ""
     },
     hidden: {
         type: Boolean,