Skip to content

Commit c466143

Browse files
committed
Merge branch 'development' of https://github.com/tcet-opensource/erp-backend into 113-Change_name_of_the_attributes_in_infrastructure
2 parents 09ded71 + b1e392e commit c466143

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)