Skip to content

Commit

Permalink
Updated to pass masterKey for Config get request (#575)
Browse files Browse the repository at this point in the history
* Updated to pass masterKey for Config get request
* updated changelog
  • Loading branch information
brndmg authored and steven-supersolid committed Jan 31, 2017
1 parent 4cb47b7 commit cf0c7fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
### NEXT RELEASE

* _Contributing to this repo? Add info about your change here to be included in next release_
* Fix: Config FETCH results in 401 (#339), thanks to [Matt Simms](https://github.com/brndmg)

### 1.0.22

Expand All @@ -18,7 +19,6 @@
* Fix: Can't send push to specific user (#570), thanks to [Dan VanWinkle](https://github.com/dvanwinkle)
* Fix: Download link in footer menu (#567), thanks to [Pavel Ivanov](https://github.com/pivanov)


### 1.0.19

* New: Support for trusting proxies w/ HTTPS
Expand Down
9 changes: 7 additions & 2 deletions src/lib/stores/ConfigStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ function ConfigStore(state, action) {
action.app.setParseKeys();
switch (action.type) {
case ActionTypes.FETCH:
return Parse.Config.get().then(({ attributes }) => {
return Map({ lastFetch: new Date(), params: Map(attributes) });
return Parse._request(
'GET',
'config',
{},
{ useMasterKey: true }
).then((result) => {
return Map({ lastFetch: new Date(), params: Map(result.params) });
});
case ActionTypes.SET:
return Parse._request(
Expand Down

0 comments on commit cf0c7fb

Please sign in to comment.