@byted-apaas/server-sdk-node 1.1.26-beta.0 → 1.1.26-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.
@@ -429,20 +429,20 @@ async function handleLookupCondition(conditions) {
429
429
  if (needReadCache) { // 打包发布 2.0 读缓存
430
430
  cacheResult = getLookupObjectAPINamesFromCache(firstObjApiName, queryMap);
431
431
  // todo wby 方便 qa 测试的日志
432
- console.log(`=====>[handleLookupCondition] getLookupObjectAPINamesFromCache: ${JSON.stringify(cacheResult)}`);
432
+ console.log(`\n=====>[handleLookupCondition] getLookupObjectAPINamesFromCache: ${JSON.stringify(cacheResult)}\n`);
433
433
  }
434
434
  // 命中缓存
435
435
  if (cacheResult !== null && cacheResult.missFields.length === 0) {
436
436
  fields = cacheResult.successFields;
437
437
  }
438
438
  // 未命中缓存 / 不读缓存
439
- if ((cacheResult !== null && cacheResult.missFields.length === 1) || queryMap.size === 1) {
439
+ if ((cacheResult !== null && cacheResult.missFields.length === 1) || (!needReadCache && queryMap.size === 1)) {
440
440
  if (cacheResult !== null && cacheResult.missFields.length === 1) {
441
441
  fieldName = cacheResult.missFields[0];
442
442
  }
443
443
  fields.push(await Request.GetInstance().getField(firstObjApiName, fieldName));
444
444
  }
445
- if ((cacheResult !== null && cacheResult.missFields.length > 1) || queryMap.size > 1) {
445
+ if ((cacheResult !== null && cacheResult.missFields.length > 1) || (!needReadCache && queryMap.size > 1)) {
446
446
  fields = await Request.GetInstance().getFields(firstObjApiName);
447
447
  }
448
448
  for (const field of fields) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byted-apaas/server-sdk-node",
3
- "version": "1.1.26-beta.0",
3
+ "version": "1.1.26-beta.2",
4
4
  "description": "aPaaS Server SDK",
5
5
  "author": "zhouwexin <zhouwexin@bytedance.com>",
6
6
  "homepage": "",