@byted-apaas/server-sdk-node 1.1.15-beta.7 → 1.1.15-beta.9

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.
@@ -571,7 +571,7 @@ class _KQuery {
571
571
  }
572
572
  else {
573
573
  let criterion = (0, logic_1.buildCriterion)(queryBuilder.getLogic(), apiName, maxId);
574
- server_common_node_1.utils.printInfoLog(`walkRecordsByLimitOffset start, criterion: ${JSON.stringify(criterion)}, logID: ${server_common_node_1.utils.getLogID()}`);
574
+ // utils.printInfoLog(`walkRecordsByLimitOffset start, criterion: ${JSON.stringify(criterion)}, logID: ${utils.getLogID()}`);
575
575
  rs = await Request.GetInstance().getRecordsOrCountByCriterion(apiName, await (0, logic_1.handleCriterion)(criterion), queryBuilder.fuzzySearch, orders, false, selectFields, i, newLimit, false, this.authType);
576
576
  }
577
577
  queryCount += rs.length;
@@ -581,7 +581,7 @@ class _KQuery {
581
581
  }
582
582
  }
583
583
  catch (err) {
584
- server_common_node_1.utils.printInfoLog(`walkRecordsByLimitOffset err, rs: ${JSON.stringify(rs)}, err: ${JSON.stringify(err)}, logID: ${server_common_node_1.utils.getLogID()}`);
584
+ // utils.printInfoLog(`walkRecordsByLimitOffset err, rs: ${JSON.stringify(rs)}, err: ${JSON.stringify(err)}, logID: ${utils.getLogID()}`);
585
585
  throw err;
586
586
  }
587
587
  if (rs.length < queryBuilder_1.defaultLimit) {
@@ -63,6 +63,7 @@ function buildCriterion(logic, objectApiName, maxId = -1) {
63
63
  let index = 0;
64
64
  let logics = [];
65
65
  let expressions = [];
66
+ server_common_node_1.utils.printErrorLog(`buildCriterion_l, logic: ${logic}`);
66
67
  console.log('buildCriterion_log', 0, logic, logic.expressions);
67
68
  // check type of logic
68
69
  function f(logic, value = 'and') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byted-apaas/server-sdk-node",
3
- "version": "1.1.15-beta.7",
3
+ "version": "1.1.15-beta.9",
4
4
  "description": "aPaaS Server SDK",
5
5
  "author": "zhouwexin <zhouwexin@bytedance.com>",
6
6
  "homepage": "",
@@ -318,7 +318,7 @@ async function getRecordsOrCountByCriterion(objectApiName, criterion, fuzzySearc
318
318
  if (authType) {
319
319
  options.headers[constants_3.AuthTypeHttpHeader] = authType;
320
320
  }
321
- utils.printInfoLog(`getRecordsOrCountByCriterion start, options: ${options}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
321
+ // utils.printInfoLog(`getRecordsOrCountByCriterion start, options: ${options}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
322
322
  let data = await openapi.doRequest(null, urlPath, options);
323
323
  return handleResponse(objectApiName, data, needCount);
324
324
  }