Skip to content

Conversation

@VinitChawda06
Copy link
Contributor

fixes #49

Copy link
Member

@TejasNair9977 TejasNair9977 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few changes.

};

const AccreditationModel = new connector.model('Accreditation', accreditationSchema);
const Accreditation = new connector.model('Accreditation', accreditationSchema);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please rename this back to AccreditationModel


export default AccreditationModel;
async function remove(filter) {
const res = await Accreditation.findOneAndDelete(filter);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make this change in every line under it too

@Hitansh159 Hitansh159 changed the base branch from 37-Create-accreditation_model to development June 16, 2023 10:14
@@ -1,5 +1,7 @@
import connector from "#models/databaseUtil";
import { logger } from "#util";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove logger

import connector from "#models/databaseUtil";
import { logger } from "#util";

connector.set("debug", true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove debug as well

Copy link
Member

@TejasNair9977 TejasNair9977 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hitansh159 Hitansh159 merged commit e148259 into development Jun 16, 2023
@TejasNair9977 TejasNair9977 deleted the 49-CURD-Accreditation_Model branch October 15, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants