Skip to content

Commit 8c04fe6

Browse files
committed
Update CloudCodeRouter.js
1 parent 190349e commit 8c04fe6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Routers/CloudCodeRouter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ export class CloudCodeRouter extends PromiseRouter {
142142
}
143143
static saveCloudFile(req) {
144144
const config = req.config || {};
145-
const DashboardOptions = config.dashboardOptions || {};
146-
if (!DashboardOptions.cloudFileEdit) {
145+
const dashboardOptions = config.dashboardOptions || {};
146+
if (!dashboardOptions.cloudFileEdit) {
147147
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Dashboard file editing is not active.');
148148
}
149149
const file = req.url.replace('/scripts', '');
@@ -160,8 +160,8 @@ export class CloudCodeRouter extends PromiseRouter {
160160
}
161161
static getCloudFile(req) {
162162
const config = req.config || {};
163-
const DashboardOptions = config.dashboardOptions || {};
164-
if (!(DashboardOptions.cloudFileView || DashboardOptions.cloudFileEdit)) {
163+
const dashboardOptions = config.dashboardOptions || {};
164+
if (!(dashboardOptions.cloudFileView || dashboardOptions.cloudFileEdit)) {
165165
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Dashboard file viewing is not active.');
166166
}
167167
const file = req.url.replace('/scripts', '');
@@ -176,8 +176,8 @@ export class CloudCodeRouter extends PromiseRouter {
176176
}
177177
static getCloudCode(req) {
178178
const config = req.config || {};
179-
const DashboardOptions = config.dashboardOptions || {};
180-
if (!(DashboardOptions.cloudFileView || DashboardOptions.cloudFileEdit)) {
179+
const dashboardOptions = config.dashboardOptions || {};
180+
if (!(dashboardOptions.cloudFileView || dashboardOptions.cloudFileEdit)) {
181181
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'Dashboard file viewing is not active.');
182182
}
183183
const dirName = __dirname.split('node_modules')[0];

0 commit comments

Comments
 (0)