()
| 83 | }; |
| 84 | |
| 85 | const getData = async () => { |
| 86 | try { |
| 87 | const query = new Parse.Query('GameScore'); |
| 88 | const result = await query.get(Store.objectId); |
| 89 | |
| 90 | closeStep('#step-2'); |
| 91 | fillStepOutput('#step-2-output', JSON.stringify(result)); |
| 92 | fillBtn('#step-2-btn', 'Fetched'); |
| 93 | openStep('#step-3'); |
| 94 | |
| 95 | bindBtn('#step-3-btn', async (e) => { |
| 96 | e.preventDefault(); |
| 97 | await postCloudCodeData(); |
| 98 | }); |
| 99 | } catch (error) { |
| 100 | fillStepError('#step-2-error', `There was a failure: ${error.message}`); |
| 101 | } |
| 102 | }; |
| 103 | |
| 104 | const postCloudCodeData = async () => { |
| 105 | try { |
no test coverage detected