-
Notifications
You must be signed in to change notification settings - Fork 1
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
Admin-2515 full application submitted #1254
Conversation
const inSelectionDaysStage = dataAfter._processing ? (dataAfter._processing.stage === 'selection') : false; | ||
const submittedLogBefore = dataBefore._submittedLog || {}; | ||
const submittedLogAfter = dataAfter._submittedLog || {}; | ||
const selectionTimestampBefore = submittedLogBefore.selection ? submittedLogBefore.selection.toMillis() : null; |
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 toMillis() an actual function?
if (!exercise) return false; | ||
|
||
const selectionProcess = exercise._applicationContent.selection || {}; | ||
const isStagedExercise = Object.values(selectionProcess).includes(true); |
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.
Would be handy to put this into the exerciseHelper, eg to have a function like this:
function isStagedExercise(exercise) {
...
}
so that we can reuse it in the future. I think we will probably combine helpers across some of the repos at some point soon.
What's included?
Backend for this ticket: jac-uk/admin#2515