alchemy-chimera 1.2.6 → 1.2.7

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,7 @@
1
+ ## 1.2.7 (2023-11-27)
2
+
3
+ * Fix expecting underscored model names
4
+
1
5
  ## 1.2.6 (2023-10-05)
2
6
 
3
7
  * Do not queue a toolbar_manager model fallback on system routes without a model
@@ -87,7 +87,7 @@ Editor.setAction(function index(conduit, model_name) {
87
87
  *
88
88
  * @author Jelle De Loecker <jelle@elevenways.be>
89
89
  * @since 0.1.0
90
- * @version 1.0.2
90
+ * @version 1.2.7
91
91
  *
92
92
  * @param {Conduit} conduit
93
93
  * @param {String} model_name
@@ -102,7 +102,7 @@ Editor.setAction(async function add(conduit, model_name) {
102
102
 
103
103
  let record = model.createDocument();
104
104
 
105
- record.setDataRecord(conduit.body[model_name]);
105
+ record.setDataRecord(conduit.body);
106
106
 
107
107
  try {
108
108
  await record.save();
@@ -141,7 +141,7 @@ Editor.setAction(async function add(conduit, model_name) {
141
141
  *
142
142
  * @author Jelle De Loecker <jelle@elevenways.be>
143
143
  * @since 0.1.0
144
- * @version 1.2.4
144
+ * @version 1.2.7
145
145
  *
146
146
  * @param {Conduit} conduit
147
147
  * @param {String} model_name
@@ -169,7 +169,7 @@ Editor.setAction(async function edit(conduit, model_name, pk_val) {
169
169
 
170
170
  if (conduit.method == 'post') {
171
171
 
172
- Object.assign(record, conduit.body[model_name]);
172
+ Object.assign(record, conduit.body);
173
173
 
174
174
  try {
175
175
  await record.save();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "alchemy-chimera",
3
3
  "description": "Chimera plugin for Alchemy MVC",
4
- "version": "1.2.6",
4
+ "version": "1.2.7",
5
5
  "author": "Jelle De Loecker <jelle@elevenways.be>",
6
6
  "keywords": [
7
7
  "alchemy",