@parameter1/base-cms-utils
Advanced tools
Comparing version 2.4.2 to 2.22.2
{ | ||
"name": "@parameter1/base-cms-utils", | ||
"version": "2.4.2", | ||
"version": "2.22.2", | ||
"description": "Utility functions for JavaScript projects.", | ||
@@ -16,3 +16,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "eeeb69c4c65e0d29b238f71949b30e8a2a7edb1f" | ||
"gitHead": "fe51435260ae04a4abfe55e00f0983222574247c" | ||
} |
@@ -13,3 +13,4 @@ const getDefaultContentTypes = require('./get-default-content-types'); | ||
} = {}) => { | ||
const date = since || new Date(); | ||
const now = new Date(); | ||
const date = since || now; | ||
const types = isArray(contentTypes) && contentTypes.length | ||
@@ -34,3 +35,3 @@ ? contentTypes : getDefaultContentTypes(); | ||
$or: [ | ||
{ unpublished: { $gt: date } }, | ||
{ unpublished: { $gt: now } }, | ||
{ unpublished: { $exists: false } }, | ||
@@ -37,0 +38,0 @@ ], |
7445
239