@forestadmin/datasource-sequelize 1.0.0-beta.38 → 1.0.0-beta.40

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/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ # @forestadmin/datasource-sequelize [1.0.0-beta.40](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.0.0-beta.39...@forestadmin/datasource-sequelize@1.0.0-beta.40) (2022-09-07)
2
+
3
+
4
+
5
+
6
+
7
+ ### Dependencies
8
+
9
+ * **@forestadmin/datasource-toolkit:** upgraded to 1.0.0-beta.30
10
+
11
+ # @forestadmin/datasource-sequelize [1.0.0-beta.39](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.0.0-beta.38...@forestadmin/datasource-sequelize@1.0.0-beta.39) (2022-09-07)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * inverted keys in sequelize belongs to many ([#409](https://github.com/ForestAdmin/agent-nodejs/issues/409)) ([4adb3a2](https://github.com/ForestAdmin/agent-nodejs/commit/4adb3a244efb0842c475fcbdf4a5f38552a6b7df))
17
+
1
18
  # @forestadmin/datasource-sequelize [1.0.0-beta.38](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.0.0-beta.37...@forestadmin/datasource-sequelize@1.0.0-beta.38) (2022-09-05)
2
19
 
3
20
 
@@ -22,9 +22,9 @@ class ModelToCollectionSchemaConverter {
22
22
  foreignCollection: association.target.name,
23
23
  throughCollection: association.through.model.name,
24
24
  originKey: association.foreignKey,
25
- originKeyTarget: association.targetKey,
25
+ originKeyTarget: association.sourceKey,
26
26
  foreignKey: association.otherKey,
27
- foreignKeyTarget: association.sourceKey,
27
+ foreignKeyTarget: association.targetKey,
28
28
  type: 'ManyToMany',
29
29
  };
30
30
  case sequelize_1.HasMany.name:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forestadmin/datasource-sequelize",
3
- "version": "1.0.0-beta.38",
3
+ "version": "1.0.0-beta.40",
4
4
  "main": "dist/index.js",
5
5
  "license": "GPL-3.0",
6
6
  "publishConfig": {
@@ -12,7 +12,7 @@
12
12
  "directory": "packages/datasource-sequelize"
13
13
  },
14
14
  "dependencies": {
15
- "@forestadmin/datasource-toolkit": "1.0.0-beta.29"
15
+ "@forestadmin/datasource-toolkit": "1.0.0-beta.30"
16
16
  },
17
17
  "files": [
18
18
  "dist/**/*.js",