فهرست منبع

Give recipe category a default value.

Lee Morgan 5 سال پیش
والد
کامیت
28509da8d0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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,