Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Mitigation to fetch correct version number (#1207)
Browse files Browse the repository at this point in the history
* fetch correct version number

* Update app.config.js
  • Loading branch information
isaac-dasan authored Jan 16, 2019
1 parent e4199ce commit d0a2d35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/services/models/gitHubModels.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});

0 comments on commit d0a2d35

Please sign in to comment.