Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
garethbowen committed Nov 1, 2024
1 parent c382fa8 commit 7c54d87
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shared-libs/validation/src/validation_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,9 @@ const exists = async (doc, fields, options = {}) => {
return found;
};

// const compareDate = (doc, validation, checkAfter = false) => {
const compareDate = (doc, date, d, checkAfter = false) => {
const compareDate = (doc, date, durationString, checkAfter = false) => {
try {
const duration = parseDuration(d);
const duration = parseDuration(durationString);
if (!duration.isValid()) {
logger.error('date constraint validation: the duration is invalid');
return false;
Expand Down

0 comments on commit 7c54d87

Please sign in to comment.