Added a datePublic validator middleware that prevents records from being created or updated to have a datePublic more than 24 hours from the current time.
Important Changes
cve.middleware.js
Added 24 hour grace period logic to existing (but not implemented) datePublicValidator.
Testing
Added unit test to test 24 hour grace period.
Run npm run test:unit-tests
Closes Issue #1163
Summary
Added a datePublic validator middleware that prevents records from being created or updated to have a datePublic more than 24 hours from the current time.
Important Changes
cve.middleware.js
Testing
Added unit test to test 24 hour grace period. Run
npm run test:unit-tests