Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Add End date for each Job for customer to edit on the CBET Admin site. #30

Open
pcast01 opened this issue Jan 12, 2021 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@pcast01
Copy link
Contributor

pcast01 commented Jan 12, 2021

No description provided.

@pcast01 pcast01 added the bug Something isn't working label Jan 12, 2021
@pcast01
Copy link
Contributor Author

pcast01 commented Jan 19, 2022

This hasn't been changed and all the jobs were not visible due to the code on cbet site checking for end date.

`const jobs = cbetContent.filter((content) => {
const newEndDate = new Date(formatDate(content.EndDate, true))
console.log("newEndDate: ", newEndDate)
if (
today < newEndDate &&
content.Category === 1 &&
content.Status === true
) {
return content
}

return null

})`

@pcast01
Copy link
Contributor Author

pcast01 commented Jan 19, 2022

We need to change the way a job is created and pass an End Date that is way out in the future.

@pcast01 pcast01 self-assigned this Jan 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant