jp-shared 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,7 +20,6 @@ const PROJECT_STATUS = ["completed", "notCompleted", null];
|
|
|
20
20
|
const educationSchema = new mongoose.Schema({
|
|
21
21
|
_id: { type: ObjectId, auto: true },
|
|
22
22
|
qualificationId: { type: ObjectId, required: true },
|
|
23
|
-
// qualification: { type: String, required: true },
|
|
24
23
|
specializationId: {
|
|
25
24
|
type: ObjectId,
|
|
26
25
|
required: function () {
|
|
@@ -28,7 +27,6 @@ const educationSchema = new mongoose.Schema({
|
|
|
28
27
|
},
|
|
29
28
|
default: null,
|
|
30
29
|
},
|
|
31
|
-
// specialization: { type: String, required: true },
|
|
32
30
|
courseId: {
|
|
33
31
|
type: ObjectId,
|
|
34
32
|
required: function () {
|
|
@@ -36,8 +34,7 @@ const educationSchema = new mongoose.Schema({
|
|
|
36
34
|
},
|
|
37
35
|
default: null,
|
|
38
36
|
},
|
|
39
|
-
|
|
40
|
-
institute: { type: ObjectId, required: true },
|
|
37
|
+
instituteId: { type: ObjectId, default: null, },
|
|
41
38
|
courseType: { type: String, required: true },
|
|
42
39
|
courseStartYear: {
|
|
43
40
|
type: Number,
|
|
@@ -44,16 +44,12 @@ const schema = new mongoose.Schema(
|
|
|
44
44
|
type: String,
|
|
45
45
|
required: [true, "About section is required"],
|
|
46
46
|
trim: true,
|
|
47
|
-
minlength: [10, "About section must be at least 10 characters long"],
|
|
48
|
-
maxlength: [1000, "About section cannot exceed 1000 characters"],
|
|
47
|
+
// minlength: [10, "About section must be at least 10 characters long"],
|
|
48
|
+
// maxlength: [1000, "About section cannot exceed 1000 characters"],
|
|
49
49
|
},
|
|
50
50
|
websiteLink: {
|
|
51
51
|
type: String,
|
|
52
52
|
required: [true, "Website link is required"],
|
|
53
|
-
// match: [
|
|
54
|
-
// /^(https?:\/\/)?(www\.)?([a-zA-Z0-9]+)(\.[a-z]{2,})+(\/[^\s]*)?$/,
|
|
55
|
-
// "Website link must be a valid URL",
|
|
56
|
-
// ],
|
|
57
53
|
trim: true,
|
|
58
54
|
},
|
|
59
55
|
gallery: {
|