byteplan-cli 1.3.5 → 1.3.6

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/package.json +1 -1
  2. package/src/cli.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "byteplan-cli",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "BytePlan CLI - Command line tool for BytePlan API",
5
5
  "keywords": [
6
6
  "byteplan",
package/src/cli.js CHANGED
@@ -246,7 +246,7 @@ userCmd
246
246
  const userInfo = await getUserInfo();
247
247
 
248
248
  const tenants = (userInfo.tenantList || []).map(t => ({
249
- tenantId: t.tenantId,
249
+ tenantId: t.id, // API 返回的字段名是 id
250
250
  tenantName: t.tenantName,
251
251
  tenantCode: t.tenantCode,
252
252
  isCurrent: t.tenantCode === userInfo.user?.tenantCode,
@@ -256,6 +256,7 @@ userCmd
256
256
  tenants,
257
257
  total: tenants.length,
258
258
  currentTenantCode: userInfo.user?.tenantCode || '',
259
+ currentTenantId: userInfo.user?.tenantId || '',
259
260
  });
260
261
  } catch (error) {
261
262
  printError(error);