From df857d6f572258afa1fc333970cdef861154b555 Mon Sep 17 00:00:00 2001 From: MitanshiKshatriya Date: Thu, 16 Dec 2021 03:47:28 +0530 Subject: [PATCH 1/2] Tagging of individual certificates/templates --- src/models/certificate.js | 1 + src/models/template.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/models/certificate.js b/src/models/certificate.js index 79bb03b..7228198 100644 --- a/src/models/certificate.js +++ b/src/models/certificate.js @@ -17,6 +17,7 @@ const certificateSchema = new Schema({ type: String, default: 'Certificate' }, + tags:[String], template: { type: String, required: true diff --git a/src/models/template.js b/src/models/template.js index 65fd33f..6136104 100644 --- a/src/models/template.js +++ b/src/models/template.js @@ -17,6 +17,7 @@ const templateSchema = new Schema({ type: String, required: true }, + tags:[String], fields: [fieldSchema], background: { type: String, From 7cabb33bbdfb3081578c38fc832112212692f9b5 Mon Sep 17 00:00:00 2001 From: MitanshiKshatriya Date: Wed, 29 Dec 2021 01:25:41 +0530 Subject: [PATCH 2/2] code style edit --- src/models/certificate.js | 2 +- src/models/template.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/certificate.js b/src/models/certificate.js index 7228198..8e3300b 100644 --- a/src/models/certificate.js +++ b/src/models/certificate.js @@ -17,7 +17,7 @@ const certificateSchema = new Schema({ type: String, default: 'Certificate' }, - tags:[String], + tags: [String], template: { type: String, required: true diff --git a/src/models/template.js b/src/models/template.js index 6136104..8e19a96 100644 --- a/src/models/template.js +++ b/src/models/template.js @@ -17,7 +17,7 @@ const templateSchema = new Schema({ type: String, required: true }, - tags:[String], + tags: [String], fields: [fieldSchema], background: { type: String,