Skip to content

Commit

Permalink
Added Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalchhabra37 committed Jul 5, 2022
1 parent 8ec8f79 commit 9c73dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/employee.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ employeeSchema.virtual('fullName').get(function() {
})

// Instance Methods
// Find Simmilar Role Types
// Find Simmilar Role Types to be used later
employeeSchema.methods.findSimmilarRole = function(emp) {
return mongoose.model('Employee').find({type: this.type}, emp)
}
// Find Simmilar status
// Find Simmilar status to be used later
employeeSchema.methods.findSimmilarStatus = function(emp) {
return mongoose.model('Employee').find({active: this.active}, emp)
}
Expand Down

0 comments on commit 9c73dd4

Please sign in to comment.