@xuda.io/xuda-worker-bundle-min 1.3.414 → 1.3.416
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/index.js +8 -28
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -293,30 +293,6 @@ func.common.db = async function (
|
|
|
293
293
|
} catch (err) {
|
|
294
294
|
console.error(err);
|
|
295
295
|
}
|
|
296
|
-
|
|
297
|
-
// fetch(url, {
|
|
298
|
-
// method: opt.type ? opt.type : "POST",
|
|
299
|
-
// headers: {
|
|
300
|
-
// Accept: "application/json",
|
|
301
|
-
// "Content-Type": "application/json",
|
|
302
|
-
// },
|
|
303
|
-
// body: JSON.stringify(data),
|
|
304
|
-
// })
|
|
305
|
-
// .then((response) => {
|
|
306
|
-
// if (!response.ok) {
|
|
307
|
-
// return response.text().then((text) => {
|
|
308
|
-
// throw new Error(text);
|
|
309
|
-
// });
|
|
310
|
-
// }
|
|
311
|
-
// return response.json();
|
|
312
|
-
// })
|
|
313
|
-
// .then((json) => {
|
|
314
|
-
// success_callback(json, true);
|
|
315
|
-
// })
|
|
316
|
-
// .catch((err) => {
|
|
317
|
-
// error_callback(err);
|
|
318
|
-
// console.error(err);
|
|
319
|
-
// });
|
|
320
296
|
};
|
|
321
297
|
|
|
322
298
|
// const perform_rpi_request_from_studio = async function (serviceP) {
|
|
@@ -374,9 +350,14 @@ func.common.db = async function (
|
|
|
374
350
|
|
|
375
351
|
delete _data.fields;
|
|
376
352
|
delete _data.viewSourceDesc;
|
|
377
|
-
if (_data.skip === null) {
|
|
378
|
-
|
|
379
|
-
|
|
353
|
+
// if (_data.skip === null) {
|
|
354
|
+
delete _data.skip;
|
|
355
|
+
delete _data.limit;
|
|
356
|
+
delete _data.count;
|
|
357
|
+
// }
|
|
358
|
+
// if (_data.reduce) {
|
|
359
|
+
delete _data.reduce;
|
|
360
|
+
// }
|
|
380
361
|
const rep_id = cleanString(_data);
|
|
381
362
|
|
|
382
363
|
////// validate existence of whole table request
|
|
@@ -384,7 +365,6 @@ func.common.db = async function (
|
|
|
384
365
|
try {
|
|
385
366
|
table_req_id = cleanString({
|
|
386
367
|
key: _data.table_id,
|
|
387
|
-
limit: 99999999,
|
|
388
368
|
table_id: _data.table_id,
|
|
389
369
|
});
|
|
390
370
|
const doc = await db.get(table_req_id);
|