@byted-apaas/server-sdk-node 1.1.15-beta.1 → 1.1.15-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byted-apaas/server-sdk-node",
3
- "version": "1.1.15-beta.1",
3
+ "version": "1.1.15-beta.2",
4
4
  "description": "aPaaS Server SDK",
5
5
  "author": "zhouwexin <zhouwexin@bytedance.com>",
6
6
  "homepage": "",
@@ -285,7 +285,6 @@ function handleResponse(objectAPIName, data, needCount) {
285
285
  }
286
286
  }
287
287
  async function getRecordsOrCountByCriterion(objectApiName, criterion, fuzzySearch, order, ignoreBackLookupField, fieldApiNames, offset, limit, needCount, authType) {
288
- console.log(criterion);
289
288
  // 1.check
290
289
  if (!objectApiName) {
291
290
  throw new exceptions.InternalError('objectApiName is empty');
@@ -319,7 +318,9 @@ async function getRecordsOrCountByCriterion(objectApiName, criterion, fuzzySearc
319
318
  if (authType) {
320
319
  options.headers[constants_3.AuthTypeHttpHeader] = authType;
321
320
  }
321
+ utils.printInfoLog(`getRecordsOrCountByCriterion start, options: ${JSON.stringify(options)}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
322
322
  let data = await openapi.doRequest(null, urlPath, options);
323
+ utils.printInfoLog(`getRecordsOrCountByCriterion end, options: ${JSON.stringify(options)}, result: ${JSON.stringify(data)}, urlPath: ${urlPath}, logID: ${utils.getLogID()}`);
323
324
  return handleResponse(objectApiName, data, needCount);
324
325
  }
325
326
  /**
@@ -610,7 +611,7 @@ async function getGlobalConfigByKey(key) {
610
611
  'biz_type': 'GlobalVariables',
611
612
  'used_by': 'UsedBySystem',
612
613
  'filter': {
613
- 'offset': offset * i,
614
+ 'offset': pageSize * i,
614
615
  'limit': pageSize,
615
616
  },
616
617
  };