Skip to content

Commit fc4ebd6

Browse files
author
Matt Simms
committed
Updated to pass masterKey for Config get request
1 parent 15e259b commit fc4ebd6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/lib/stores/ConfigStore.js

Lines changed: 7 additions & 2 deletions
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)