Skip to content

Commit 304924b

Browse files
committed
fixed typo accreditionName to name
1 parent d23d09f commit 304924b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/accreditation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import connector from "#models/databaseUtil";
22

33
const accreditationSchema = {
4-
accreditationName: { type: String, required: true },
4+
name: { type: String, required: true },
55
agencyName: { type: String, required: true },
66
dateofAccreditation: { type: Date, required: true },
77
dateofExpiry: { type: Date, required: true },
@@ -14,9 +14,9 @@ async function remove(filter) {
1414
return res;
1515
}
1616

17-
async function create(accreditationName, agencyName, dateofAccreditation, dateofExpiry) {
17+
async function create(name, agencyName, dateofAccreditation, dateofExpiry) {
1818
const accreditation = new Accreditation({
19-
accreditationName,
19+
name,
2020
agencyName,
2121
dateofAccreditation,
2222
dateofExpiry,

0 commit comments

Comments
 (0)