@@ -142,8 +142,8 @@ export class CloudCodeRouter extends PromiseRouter {
142
142
}
143
143
static saveCloudFile ( req ) {
144
144
const config = req . config || { } ;
145
- const DashboardOptions = config . dashboardOptions || { } ;
146
- if ( ! DashboardOptions . cloudFileEdit ) {
145
+ const dashboardOptions = config . dashboardOptions || { } ;
146
+ if ( ! dashboardOptions . cloudFileEdit ) {
147
147
throw new Parse . Error ( Parse . Error . OBJECT_NOT_FOUND , 'Dashboard file editing is not active.' ) ;
148
148
}
149
149
const file = req . url . replace ( '/scripts' , '' ) ;
@@ -160,8 +160,8 @@ export class CloudCodeRouter extends PromiseRouter {
160
160
}
161
161
static getCloudFile ( req ) {
162
162
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 ) ) {
165
165
throw new Parse . Error ( Parse . Error . OBJECT_NOT_FOUND , 'Dashboard file viewing is not active.' ) ;
166
166
}
167
167
const file = req . url . replace ( '/scripts' , '' ) ;
@@ -176,8 +176,8 @@ export class CloudCodeRouter extends PromiseRouter {
176
176
}
177
177
static getCloudCode ( req ) {
178
178
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 ) ) {
181
181
throw new Parse . Error ( Parse . Error . OBJECT_NOT_FOUND , 'Dashboard file viewing is not active.' ) ;
182
182
}
183
183
const dirName = __dirname . split ( 'node_modules' ) [ 0 ] ;
0 commit comments