spice-js 2.6.81 → 2.6.82
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.
|
@@ -67,7 +67,7 @@ class SpiceModel {
|
|
|
67
67
|
|
|
68
68
|
var Database = require("spice-" + dbtype);
|
|
69
69
|
|
|
70
|
-
this[_mapping_dept] = ((_args2 = args) == null ? void 0 : (_args2$args = _args2.args) == null ? void 0 : _args2$args.mapping_dept) ||
|
|
70
|
+
this[_mapping_dept] = ((_args2 = args) == null ? void 0 : (_args2$args = _args2.args) == null ? void 0 : _args2$args.mapping_dept) || process.env.MAPPING_DEPT || 3;
|
|
71
71
|
this[_mapping_dept_exempt] = ((_args3 = args) == null ? void 0 : (_args3$args = _args3.args) == null ? void 0 : _args3$args.mapping_dept_exempt) || [];
|
|
72
72
|
this.type = "";
|
|
73
73
|
this.collection = args.connection;
|
package/package.json
CHANGED
package/src/models/SpiceModel.js
CHANGED
|
@@ -53,7 +53,8 @@ export default class SpiceModel {
|
|
|
53
53
|
var dbtype =
|
|
54
54
|
spice.config.database.connections[args.connection].type || "couchbase";
|
|
55
55
|
let Database = require(`spice-${dbtype}`);
|
|
56
|
-
this[_mapping_dept] =
|
|
56
|
+
this[_mapping_dept] =
|
|
57
|
+
args?.args?.mapping_dept || process.env.MAPPING_DEPT || 3;
|
|
57
58
|
this[_mapping_dept_exempt] = args?.args?.mapping_dept_exempt || [];
|
|
58
59
|
this.type = "";
|
|
59
60
|
this.collection = args.connection;
|