Skip to content

Commit

Permalink
ATOR-232 - Fix mapping index
Browse files Browse the repository at this point in the history
  • Loading branch information
yumirkov committed Apr 4, 2024
1 parent 4a544d6 commit de8fd78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function handleQuery(query: string, res: any) {
console.log(vmRawData);

const mappedData = vmRawData.data.result.reduce((acc: any, item: any) => {
acc[item.metric.status] = item.values[0];
acc[item.metric.status] = item.value[1];
return acc;
}, {});
console.log(mappedData);
Expand Down

0 comments on commit de8fd78

Please sign in to comment.