@pxp-nd/core 1.2.82 → 1.2.84
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.
|
@@ -195,6 +195,7 @@ class Controller {
|
|
|
195
195
|
// Execute our method for this path and pass our express request and response object.
|
|
196
196
|
const params = Object.assign(Object.assign({}, req.files), req.paramasMerge);
|
|
197
197
|
this.pxpParams = req.pxpParams;
|
|
198
|
+
this.headers = req.headers;
|
|
198
199
|
if (req.user) {
|
|
199
200
|
// this.user = req.user as User;
|
|
200
201
|
this.user = req.user;
|
|
@@ -250,7 +251,7 @@ class Controller {
|
|
|
250
251
|
await index_1.__(queryRunner.connect());
|
|
251
252
|
await index_1.__(queryRunner.startTransaction());
|
|
252
253
|
try {
|
|
253
|
-
metResponse = (await eval(`this.${methodName}(params, queryRunner.manager, res)`));
|
|
254
|
+
metResponse = (await eval(`this.${methodName}(params, queryRunner.manager, res, req)`));
|
|
254
255
|
await queryRunner.commitTransaction();
|
|
255
256
|
}
|
|
256
257
|
catch (err) {
|