@pxp-nd/core 1.2.82 → 1.2.83
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.
|
@@ -219,7 +219,7 @@ class Controller {
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
async genericMethodWrapper(params, req, next, res, methodName, dbsettings, readonly, permission =
|
|
222
|
+
async genericMethodWrapper(params, req, next, res, methodName, dbsettings, readonly, permission = false, log = true, logConfig = {}, isHtml, isFile) {
|
|
223
223
|
if (dbsettings === 'Orm') {
|
|
224
224
|
await index_1.__(this.ormMethodWrapper(params, req, next, res, methodName, readonly, permission, log, logConfig, isHtml, isFile));
|
|
225
225
|
}
|
|
@@ -230,7 +230,7 @@ class Controller {
|
|
|
230
230
|
await this.sqlMethodWrapper(params, next, res, methodName, readonly, permission, log, logConfig);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
async ormMethodWrapper(params, req, next, res, methodName, readonly, permission =
|
|
233
|
+
async ormMethodWrapper(params, req, next, res, methodName, readonly, permission = false, log = true, logConfig = {}, isHtml = false, isFile = false) {
|
|
234
234
|
let metResponse;
|
|
235
235
|
if (permission) {
|
|
236
236
|
if (this.user) {
|
|
@@ -108,7 +108,7 @@ const IsFile = (isFile = false) => (target, propertyKey) => setProperty(target,
|
|
|
108
108
|
exports.IsFile = IsFile;
|
|
109
109
|
const DbSettings = (modelType) => (target, propertyKey) => setProperty(target, propertyKey)(modelType, 'dbsettings');
|
|
110
110
|
exports.DbSettings = DbSettings;
|
|
111
|
-
const Permission = (permission =
|
|
111
|
+
const Permission = (permission = false) => (target, propertyKey) => setProperty(target, propertyKey)(permission, 'permission');
|
|
112
112
|
exports.Permission = Permission;
|
|
113
113
|
const Log = (log = true, config = {}) => {
|
|
114
114
|
return (target, propertyKey) => {
|