Found cases where a GeneratedCertificate existed for a user/course but the CourseEnrollment for user/course no longer existed. Odd edge case breaking calculation of days to complete.
Type of change
[x] Bug fix (fixes an issue)
[ ] New feature (adds functionality)
Development
[x] Lint rules pass locally
[x] Application changes have been tested thoroughly
[x] Automated tests covering modified code pass
Security
[ ] Security impact of change has been considered
[ ] Code follows company security practices and guidelines
Code review
[x] Pull request has a descriptive title and context useful to a reviewer. Screenshots or screencasts are attached as necessary
[x] "Ready for review" label attached and reviewers assigned
[ ] Changes have been reviewed by at least one other contributor
[ ] Pull request linked to task tracker where applicable
Change description
Type of change
Development
Security
Code review