Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,12 @@ | ||
2.0.3 / 2021-02-11 | ||
================== | ||
## What's Changed | ||
* fix: default updatedAt to new date if model has no createdAt by @LB4027221 in https://github.com/cyjake/leoric/pull/268 | ||
## New Contributors | ||
* @LB4027221 made their first contribution in https://github.com/cyjake/leoric/pull/268 | ||
**Full Changelog**: https://github.com/cyjake/leoric/compare/v2.0.2...v2.0.3 | ||
2.0.2 / 2021-02-10 | ||
@@ -2,0 +13,0 @@ ================== |
{ | ||
"name": "leoric", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "JavaScript Object-relational mapping alchemy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -714,3 +714,3 @@ 'use strict'; | ||
if (attributes[updatedAt] && !this[updatedAt]) { | ||
this[updatedAt] = this[createdAt]; | ||
this[updatedAt] = this[createdAt] || new Date(); | ||
} | ||
@@ -717,0 +717,0 @@ |
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
287675