Skip to content

Commit b896033

Browse files
[fixed] a spelling error in ./models/activityBlueprint.js line number 29
1 parent b39e984 commit b896033

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

models/activityBlueprint.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const activityBluePrintSchema = {
66
type: String,
77
required: true,
88
validate: {
9-
validator: (value) => /^20\d{2}$/.test(value), // changed the valid year format starting from "20" !!
9+
validator: (value) => /^20\d{2}$/.test(value), //changed the valid year format starting from "20" !!
1010
message: (props) => `${props.value} is not a valid year format starting with "2"!`,
1111
},
1212
},
@@ -29,9 +29,9 @@ async function create(activityBlueprintData) {
2929
} = activityBlueprintData;
3030
const activityblueprint = new ActivityBlueprint({
3131
number,
32-
academicYear,
33-
type,
34-
startDate,
32+
academicYear,
33+
type,
34+
startDate,
3535
endDate,
3636
});
3737
const activityblueprintDoc = await activityblueprint.save();
@@ -48,6 +48,6 @@ async function update(filter, updateObject, options = { multi: true }) {
4848
return deleteResult.acknowledged;
4949
}
5050

51-
export default {
51+
export default{
5252
create, read, update, remove,
53-
};
53+
}

0 commit comments

Comments
 (0)