tuain-form-manager 1.4.8 → 1.4.9
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/lib/form-manager.js +7 -7
- package/package.json +1 -1
package/lib/form-manager.js
CHANGED
|
@@ -144,13 +144,6 @@ class FormManager {
|
|
|
144
144
|
errorObj = this.errMgr.get(modErrs.formActionExec.formNotFound, message);
|
|
145
145
|
return [errorObj, null];
|
|
146
146
|
}
|
|
147
|
-
const formCustomObject = new FormClass(this.logger, this.errMgr, requestContext, formDefinition, requestData);
|
|
148
|
-
if (!formCustomObject) {
|
|
149
|
-
message = `No fue posible instanciar la clase de gestión del formulario ${formCode}`;
|
|
150
|
-
this.logger.log({ level: 'error', label: 'FormManager', action: 'executeFormAction', message });
|
|
151
|
-
errorObj = this.errMgr.get(modErrs.formActionExec.formNotFound, message);
|
|
152
|
-
return [errorObj, null];
|
|
153
|
-
}
|
|
154
147
|
const requireSession = formDefinition.form.requireSession ?? false;
|
|
155
148
|
if (requireSession) {
|
|
156
149
|
const { currentSession } = requestContext ?? {};
|
|
@@ -163,6 +156,13 @@ class FormManager {
|
|
|
163
156
|
return [errorObj, null];
|
|
164
157
|
}
|
|
165
158
|
}
|
|
159
|
+
const formCustomObject = new FormClass(this.logger, this.errMgr, requestContext, formDefinition, requestData);
|
|
160
|
+
if (!formCustomObject) {
|
|
161
|
+
message = `No fue posible instanciar la clase de gestión del formulario ${formCode}`;
|
|
162
|
+
this.logger.log({ level: 'error', label: 'FormManager', action: 'executeFormAction', message });
|
|
163
|
+
errorObj = this.errMgr.get(modErrs.formActionExec.formNotFound, message);
|
|
164
|
+
return [errorObj, null];
|
|
165
|
+
}
|
|
166
166
|
[errorObj, resultForm] = await formCustomObject.executeFormAction(actionCode);
|
|
167
167
|
message = `END FORM ACTION ${formCode} / ${actionCode} / ${errorObj?.errorCode ?? ''}`;
|
|
168
168
|
this.logger.log({ level: 'info', label: 'FormManager', action: 'executeFormAction', message });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tuain-form-manager",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "Component library to perform operations on Tuain Development Framework forms to interchange information on web or mobile applications based on the data interchange of abstract forms making trnasformation on the data upon actions required on both sides (front and back)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|