From ee83a2ea06ffc991dc6799a008b76e33bd5200b0 Mon Sep 17 00:00:00 2001 From: Vinit Date: Thu, 29 Jun 2023 16:10:52 +0530 Subject: [PATCH] Removed UID from the file --- models/accreditation.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/models/accreditation.js b/models/accreditation.js index cd75537..6af0878 100644 --- a/models/accreditation.js +++ b/models/accreditation.js @@ -1,7 +1,6 @@ import connector from "#models/databaseUtil"; const accreditationSchema = { - uid: { type: String, unique: true, required: true }, accreditationName: { type: String, required: true }, agencyName: { type: String, required: true }, dateofAccreditation: { type: Date, required: true }, @@ -15,11 +14,10 @@ async function remove(filter) { return res; } -async function create(uid, accreditationName, agencyName, dateofAccreditation, dateofExpiry) { +async function create(accreditationName, agencyName, dateofAccreditation, dateofExpiry) { const accreditation = new Accreditation({ accreditationName, agencyName, - uid, dateofAccreditation, dateofExpiry, });