@spinajs/orm
Advanced tools
Comparing version 1.2.157 to 1.2.161
@@ -51,2 +51,7 @@ "use strict"; | ||
var _a; | ||
// skip if column is primary key & is null | ||
// we dont want to override pkey of target model | ||
if (k === descriptor.PrimaryKey && !values[k]) { | ||
return; | ||
} | ||
const column = (_a = descriptor.Columns) === null || _a === void 0 ? void 0 : _a.find((c) => c.Name === k); | ||
@@ -53,0 +58,0 @@ target[k] = column.Converter ? column.Converter.fromDB(values[k]) : values[k]; |
{ | ||
"name": "@spinajs/orm", | ||
"version": "1.2.157", | ||
"version": "1.2.161", | ||
"description": "framework orm module", | ||
@@ -55,3 +55,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "7e1bbb1c0a139e119230689892278afd0fa54416" | ||
"gitHead": "3d19ce4912042ecb6378df155bdf7c8614bb80fe" | ||
} |
Sorry, the diff of this file is not supported yet
378311
6550