corebasic 1.0.112 → 1.0.114
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/libs/features.js +5 -1
- package/package.json +1 -1
package/libs/features.js
CHANGED
|
@@ -19,7 +19,7 @@ async function loadLocalFeatures() { // For Local Testing
|
|
|
19
19
|
let data = {}
|
|
20
20
|
if (process.env.LOAD_LOCAL_FEATURES) {
|
|
21
21
|
try {
|
|
22
|
-
let url = 'https://slyp.app/slyp-
|
|
22
|
+
let url = 'https://slyp.app/slyp-dev/api/v1/features'
|
|
23
23
|
let result = (await axios.get(url, { data: {}, headers: {jwt: SERVICE_ACCESS_TOKEN, service: true}, timeout: 1000 })).data
|
|
24
24
|
await Utils.stringToFile('/slyp.local.features.json', JSON.stringify(result.data, null, '\t'))
|
|
25
25
|
} catch {
|
|
@@ -136,6 +136,10 @@ export const start = async (app, url, file) => {
|
|
|
136
136
|
|
|
137
137
|
let meta = {...req.body, data: undefined}
|
|
138
138
|
req.meta = meta
|
|
139
|
+
if (process.env.USE_DEFAULT_COMPANY) {
|
|
140
|
+
req.meta.company = 'DEFAULT_COMPANY'
|
|
141
|
+
req.meta.outlet = 'DEFAULT_OUTLET'
|
|
142
|
+
}
|
|
139
143
|
|
|
140
144
|
if (method === "get") {
|
|
141
145
|
try {
|