Skip to content

Commit

Permalink
chore: resolve sonarcloud issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Jan 21, 2025
1 parent 0c09f23 commit 4f96a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/latestupdate.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export class LatestUpdateController {
@get('/latest-update')
@response(200)
async latestUpdate() {
const response = await axios.get(urls.DATASET_INFORMATION);
const rawData = _.get(response.data, LatestUpdateMapping.dataPath, []);
const resp = await axios.get(urls.DATASET_INFORMATION);
const rawData = _.get(resp.data, LatestUpdateMapping.dataPath, []);

const data = LatestUpdateMapping.datasets.map(dataset => {
const fDataset = _.find(rawData, {
Expand Down

0 comments on commit 4f96a15

Please sign in to comment.