corebasic 1.0.127 → 1.0.128

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.
Files changed (2) hide show
  1. package/libs/elabase.js +9 -5
  2. package/package.json +1 -1
package/libs/elabase.js CHANGED
@@ -123,11 +123,15 @@ export const insert = async (meta, collection, value, _id) => {
123
123
  }
124
124
 
125
125
  export const query = async (meta, collection, query, options) => {
126
- // Multi Company Support
127
- if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.query()"}
128
- collection = `${meta.company}.${collection}`
129
- if (meta.company !== "GLOBAL")
130
- query.company = meta.company
126
+ if (meta?.USE_EMPTY_COMPANY) {
127
+
128
+ } else {
129
+ // Multi Company Support
130
+ if (Utils.isEmpty(meta?.company)) throw {message: "Error: meta argument not provided in Dip.query()"}
131
+ collection = `${meta.company}.${collection}`
132
+ if (meta.company !== "GLOBAL")
133
+ query.company = meta.company
134
+ }
131
135
  // ---------------------
132
136
 
133
137
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.127",
4
+ "version": "1.0.128",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {