From 80b1364486534057b99d15a9de972651a78b1dbd Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Fri, 30 Dec 2022 03:13:02 +0100 Subject: [PATCH] Added online field to required articles field --- mongo-init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo-init.js b/mongo-init.js index 1edf04a..57f0f96 100644 --- a/mongo-init.js +++ b/mongo-init.js @@ -4,7 +4,7 @@ const db = conn.getDB("gohcms") db.createCollection('articles', { validator: { $jsonSchema: { - required: ['content', 'date', 'id_name', 'page_id'], + required: ['content', 'date', 'id_name', 'page_id', 'online'], properties: { _id: { bsonType: 'objectId'