@dreamor/atlas-cli 0.7.8 → 0.7.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.
@@ -13,7 +13,8 @@ function getProjectId(opts) {
13
13
  }
14
14
  async function fetchActual(pid, month) {
15
15
  const client = createClient();
16
- return client.post('/yuntu-service/manpower/weekly/summaryByTeam.json', { projectId: pid, month });
16
+ const data = await client.post('/yuntu-service/manpower/weekly/summaryByTeam.json', { projectId: pid, month });
17
+ return data ?? [];
17
18
  }
18
19
  export async function showCmd(staffId, opts) {
19
20
  const pid = getProjectId(opts);
@@ -1 +1 @@
1
- export const ATLAS_VERSION = '0.7.8';
1
+ export const ATLAS_VERSION = '0.7.9';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamor/atlas-cli",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "Atlas CLI - 斑马云图人力基线管理工具",
5
5
  "type": "module",
6
6
  "bin": {