Skip to content

Commit

Permalink
[MNOE-406] param refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MAhsenArif committed Feb 9, 2018
1 parent a38ea4b commit 6890d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/mnoe-api/app-instances.svc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ angular.module 'mnoEnterpriseAngular'
defer = $q.defer()
MnoeOrganizations.get().then(
->
params = if force == true then 'unscoped' else ''
_self.appInstancesPromise = MnoeApiSvc.one('organizations', MnoeOrganizations.selectedId).one('/app_instances?data=' + params).get().then(
query = if force == true then '?unscoped=true' else ''
_self.appInstancesPromise = MnoeApiSvc.one('organizations', MnoeOrganizations.selectedId).one('/app_instances' + query).get().then(
(response) ->
response = response.plain()
# Save the app instances in the local storage
Expand Down

0 comments on commit 6890d44

Please sign in to comment.