We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aefbc6a commit cf1b5eeCopy full SHA for cf1b5ee
src/common/helper.js
@@ -1156,10 +1156,10 @@ async function getStandSkills(ids) {
1156
}
1157
queryBatches.push(queryString);
1158
1159
- const promises = [];
+ const skillDataPromises = [];
1160
const token = await m2mHelper.getM2MToken();
1161
for (const batch of queryBatches) {
1162
- promises.push(
+ skillDataPromises.push(
1163
(async () => {
1164
const res = await axios.get(
1165
`${config.API_BASE_URL}/v5/standardized-skills/skills?${batch}`,
@@ -1172,8 +1172,8 @@ async function getStandSkills(ids) {
1172
);
1173
1174
1175
- const datas = await Promise.all(promises);
1176
- return _.concat(...datas);
+ const data = await Promise.all(skillDataPromises);
+ return _.concat(...data);
1177
1178
1179
/**
0 commit comments