From d0a2d350c038acbe90e2279d01237119f77ed48d Mon Sep 17 00:00:00 2001 From: Isaac Date: Wed, 16 Jan 2019 14:52:06 -0800 Subject: [PATCH] Mitigation to fetch correct version number (#1207) * fetch correct version number * Update app.config.js --- src/app.config.js | 2 +- src/services/models/gitHubModels.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.config.js b/src/app.config.js index de695a2f9..37b71e14a 100644 --- a/src/app.config.js +++ b/src/app.config.js @@ -12,7 +12,7 @@ const Config = { diagnostics: `${baseUrl}/diagnostics/v1/`, privacy: 'https://privacy.microsoft.com/privacystatement', //TODO: Determine if should query java or dotnet - gitHubReleases: 'https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/releases' + gitHubReleases: `https://api.github.com/repos/Azure/azure-iot-pcs-remote-monitoring-dotnet/releases/tags/2.1.2` }, contextHelpUrls: { accessDenied: 'https://docs.microsoft.com/azure/iot-accelerators/iot-accelerators-remote-monitoring-rbac#add-or-remove-users', diff --git a/src/services/models/gitHubModels.js b/src/services/models/gitHubModels.js index 2182e2eee..87a439680 100644 --- a/src/services/models/gitHubModels.js +++ b/src/services/models/gitHubModels.js @@ -4,7 +4,7 @@ import { camelCaseReshape } from 'utilities'; const emptyResponse = { name: undefined, htmlUrl: undefined }; -export const toGitHubModel = ([response = emptyResponse] = []) => camelCaseReshape(response, { +export const toGitHubModel = (response = emptyResponse) => camelCaseReshape(response, { 'name': 'version', 'htmlUrl': 'releaseNotesUrl' });