Skip to content

Commit ee83a2e

Browse files
committed
Removed UID from the file
1 parent e148259 commit ee83a2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

models/accreditation.js

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

33
const accreditationSchema = {
4-
uid: { type: String, unique: true, required: true },
54
accreditationName: { type: String, required: true },
65
agencyName: { type: String, required: true },
76
dateofAccreditation: { type: Date, required: true },
@@ -15,11 +14,10 @@ async function remove(filter) {
1514
return res;
1615
}
1716

18-
async function create(uid, accreditationName, agencyName, dateofAccreditation, dateofExpiry) {
17+
async function create(accreditationName, agencyName, dateofAccreditation, dateofExpiry) {
1918
const accreditation = new Accreditation({
2019
accreditationName,
2120
agencyName,
22-
uid,
2321
dateofAccreditation,
2422
dateofExpiry,
2523
});

0 commit comments

Comments
 (0)