Skip to content

Commit cf1b5ee

Browse files
author
liuliquan
committed
fix: update variable names
1 parent aefbc6a commit cf1b5ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,10 +1156,10 @@ async function getStandSkills(ids) {
11561156
}
11571157
queryBatches.push(queryString);
11581158

1159-
const promises = [];
1159+
const skillDataPromises = [];
11601160
const token = await m2mHelper.getM2MToken();
11611161
for (const batch of queryBatches) {
1162-
promises.push(
1162+
skillDataPromises.push(
11631163
(async () => {
11641164
const res = await axios.get(
11651165
`${config.API_BASE_URL}/v5/standardized-skills/skills?${batch}`,
@@ -1172,8 +1172,8 @@ async function getStandSkills(ids) {
11721172
);
11731173
}
11741174

1175-
const datas = await Promise.all(promises);
1176-
return _.concat(...datas);
1175+
const data = await Promise.all(skillDataPromises);
1176+
return _.concat(...data);
11771177
}
11781178

11791179
/**

0 commit comments

Comments
 (0)