@forestadmin/datasource-sequelize 1.0.0-beta.36 → 1.0.0-beta.39

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,30 @@
1
+ # @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)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 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))
7
+
8
+ # @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)
9
+
10
+
11
+
12
+
13
+
14
+ ### Dependencies
15
+
16
+ * **@forestadmin/datasource-toolkit:** upgraded to 1.0.0-beta.29
17
+
18
+ # @forestadmin/datasource-sequelize [1.0.0-beta.37](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.0.0-beta.36...@forestadmin/datasource-sequelize@1.0.0-beta.37) (2022-09-05)
19
+
20
+
21
+
22
+
23
+
24
+ ### Dependencies
25
+
26
+ * **@forestadmin/datasource-toolkit:** upgraded to 1.0.0-beta.28
27
+
1
28
  # @forestadmin/datasource-sequelize [1.0.0-beta.36](https://github.com/ForestAdmin/agent-nodejs/compare/@forestadmin/datasource-sequelize@1.0.0-beta.35...@forestadmin/datasource-sequelize@1.0.0-beta.36) (2022-08-23)
2
29
 
3
30
 
@@ -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.36",
3
+ "version": "1.0.0-beta.39",
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.27"
15
+ "@forestadmin/datasource-toolkit": "1.0.0-beta.29"
16
16
  },
17
17
  "files": [
18
18
  "dist/**/*.js",