@spinajs/orm-sql
Advanced tools
Comparing version 2.0.212 to 2.0.213
@@ -40,4 +40,6 @@ "use strict"; | ||
let dt = value instanceof luxon_1.DateTime ? value : luxon_1.DateTime.fromJSDate(value); | ||
if (DATE_NUMERICAL_TYPES.includes(column.Type)) { | ||
return dt.toUnixInteger() ?? 0; | ||
if (column) { | ||
if (DATE_NUMERICAL_TYPES.includes(column.Type)) { | ||
return dt.toUnixInteger() ?? 0; | ||
} | ||
} | ||
@@ -44,0 +46,0 @@ return dt.toSQL({ includeOffset: false }); |
@@ -35,4 +35,6 @@ import { DatetimeValueConverter } from '@spinajs/orm'; | ||
let dt = value instanceof DateTime ? value : DateTime.fromJSDate(value); | ||
if (DATE_NUMERICAL_TYPES.includes(column.Type)) { | ||
return dt.toUnixInteger() ?? 0; | ||
if (column) { | ||
if (DATE_NUMERICAL_TYPES.includes(column.Type)) { | ||
return dt.toUnixInteger() ?? 0; | ||
} | ||
} | ||
@@ -39,0 +41,0 @@ return dt.toSQL({ includeOffset: false }); |
{ | ||
"name": "@spinajs/orm-sql", | ||
"version": "2.0.212", | ||
"version": "2.0.213", | ||
"description": "framework orm sql language module", | ||
@@ -55,5 +55,5 @@ | ||
"dependencies": { | ||
"@spinajs/di": "^2.0.212", | ||
"@spinajs/orm": "^2.0.212", | ||
"@spinajs/exceptions": "^2.0.212", | ||
"@spinajs/di": "^2.0.213", | ||
"@spinajs/orm": "^2.0.213", | ||
"@spinajs/exceptions": "^2.0.213", | ||
"luxon": "^3.2.1", | ||
@@ -60,0 +60,0 @@ "typescript-mix": "^3.1.3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
403982
3620
Updated@spinajs/di@^2.0.213
Updated@spinajs/exceptions@^2.0.213
Updated@spinajs/orm@^2.0.213