-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modified condition for returning training data #6288
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the isMandatory functionality definitely not used anywhere?
The PR is pointing to test at the moment
Code Climate has analyzed commit 3db0746 and detected 0 issues on this pull request. View more on Code Climate. |
@@ -80,5 +82,30 @@ module.exports = function (sequelize, DataTypes) { | |||
}); | |||
}; | |||
|
|||
MandatoryTraining.getWorkersWithMandatoryTraining = async function(establishmentId, trainingCategoryId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this function being used anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I thought I'd removed this - good catch.
@@ -1,3 +1,5 @@ | |||
const { QueryTypes } = require("sequelize"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guessing you can remove this too?
Work done
Tests
Does this PR include tests for the changes introduced?