@nattyjs/orm 0.0.1-beta.45 → 0.0.1-beta.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -910,7 +910,7 @@ class DbSet {
910
910
  if (properties && Array.isArray(properties)) {
911
911
  for (const property of properties) {
912
912
  if (entity[property.name]) {
913
- const propName = entity[property.name];
913
+ const propName = property.name;
914
914
  const dbFieldConfig = propsDbConfig.get(propName);
915
915
  if (dbFieldConfig && (dbFieldConfig.oneToMany || dbFieldConfig.oneToOne)) {
916
916
  const fieldRelationConfig = dbFieldConfig.oneToMany || dbFieldConfig.oneToOne;
package/dist/index.mjs CHANGED
@@ -893,7 +893,7 @@ class DbSet {
893
893
  if (properties && Array.isArray(properties)) {
894
894
  for (const property of properties) {
895
895
  if (entity[property.name]) {
896
- const propName = entity[property.name];
896
+ const propName = property.name;
897
897
  const dbFieldConfig = propsDbConfig.get(propName);
898
898
  if (dbFieldConfig && (dbFieldConfig.oneToMany || dbFieldConfig.oneToOne)) {
899
899
  const fieldRelationConfig = dbFieldConfig.oneToMany || dbFieldConfig.oneToOne;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/orm",
3
- "version": "0.0.1-beta.45",
3
+ "version": "0.0.1-beta.46",
4
4
  "description": "",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.cjs",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "pg": "8.16.0",
21
21
  "mssql": "^9.1.1",
22
- "@nattyjs/core": "0.0.1-beta.45",
23
- "@nattyjs/common": "0.0.1-beta.45",
24
- "@nattyjs/entity": "0.0.1-beta.45",
25
- "@nattyjs/types": "0.0.1-beta.45"
22
+ "@nattyjs/core": "0.0.1-beta.46",
23
+ "@nattyjs/common": "0.0.1-beta.46",
24
+ "@nattyjs/entity": "0.0.1-beta.46",
25
+ "@nattyjs/types": "0.0.1-beta.46"
26
26
  }
27
27
  }