@mongez/mongodb
Advanced tools
Comparing version 1.0.60 to 1.0.61
@@ -516,6 +516,6 @@ "use strict"; | ||
case "date": { | ||
if (isEmpty) return null; | ||
if (value instanceof Date) { | ||
return timeWizard.toUTC(value); | ||
} | ||
if (isEmpty) return null; | ||
if (dayjs__default.default.isDayjs(value)) { | ||
@@ -522,0 +522,0 @@ return timeWizard.toUTC(value.toDate()); |
@@ -513,6 +513,6 @@ import { | ||
case "date": { | ||
if (isEmpty) return null; | ||
if (value instanceof Date) { | ||
return toUTC(value); | ||
} | ||
if (isEmpty) return null; | ||
if (dayjs.isDayjs(value)) { | ||
@@ -519,0 +519,0 @@ return toUTC(value.toDate()); |
{ | ||
"name": "@mongez/mongodb", | ||
"version": "1.0.60", | ||
"version": "1.0.61", | ||
"description": "Powerful Mongodb Database Manager for Node Js", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |