Skip to content

Commit cf0c7fb

Browse files
brndmgsteven-supersolid
authored andcommitted
Updated to pass masterKey for Config get request (#575)
* Updated to pass masterKey for Config get request * updated changelog
1 parent 4cb47b7 commit cf0c7fb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
### NEXT RELEASE
44

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

78
### 1.0.22
89

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

21-
2222
### 1.0.19
2323

2424
* New: Support for trusting proxies w/ HTTPS

src/lib/stores/ConfigStore.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ function ConfigStore(state, action) {
2222
action.app.setParseKeys();
2323
switch (action.type) {
2424
case ActionTypes.FETCH:
25-
return Parse.Config.get().then(({ attributes }) => {
26-
return Map({ lastFetch: new Date(), params: Map(attributes) });
25+
return Parse._request(
26+
'GET',
27+
'config',
28+
{},
29+
{ useMasterKey: true }
30+
).then((result) => {
31+
return Map({ lastFetch: new Date(), params: Map(result.params) });
2732
});
2833
case ActionTypes.SET:
2934
return Parse._request(

0 commit comments

Comments
 (0)