corebasic 1.0.117 → 1.0.119

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/elabase.js CHANGED
@@ -160,6 +160,8 @@ export const update = async (meta, collection, query, update, options) => {
160
160
  collection = `${meta.company}.${collection}`
161
161
  if (meta.company !== "GLOBAL") {
162
162
  query.company = meta.company
163
+ update.$set = update.$set ?? {}
164
+ update.$set.company = meta.company
163
165
  if (update?.$setOnInsert)
164
166
  update.$setOnInsert.company = meta.company
165
167
  }
package/libs/features.js CHANGED
@@ -20,7 +20,7 @@ async function loadLocalFeatures() { // For Local Testing
20
20
  if (process.env.LOAD_LOCAL_FEATURES) {
21
21
  try {
22
22
  let url = 'https://slyp.app/slyp-dev/api/v1/features'
23
- let result = (await axios.get(url, { data: {}, headers: {jwt: SERVICE_ACCESS_TOKEN, service: true}, timeout: 1000 })).data
23
+ let result = (await axios.get(url, { data: {}, headers: {jwt: SERVICE_ACCESS_TOKEN, service: true}, timeout: 3000 })).data
24
24
  await Utils.stringToFile('/slyp.local.features.json', JSON.stringify(result.data, null, '\t'))
25
25
  } catch {
26
26
  console.log('Error Fetching Remote Features')
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.117",
4
+ "version": "1.0.119",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {