Skip to content

Commit c15ff72

Browse files
committed
fix: feedbacks
1 parent 239a55c commit c15ff72

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

src/RestQuery.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const { continueWhile } = require('parse/lib/node/promiseUtils');
88
const AlwaysSelectedKeys = ['objectId', 'createdAt', 'updatedAt', 'ACL'];
99
const { enforceRoleSecurity } = require('./SharedRest');
1010
const { createSanitizedError } = require('./Error');
11-
const defaultLogger = require('./logger').default;
1211

1312
// restOptions can include:
1413
// skip

src/RestWrite.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import _ from 'lodash';
1818
import logger from './logger';
1919
import { requiredColumns } from './Controllers/SchemaController';
2020
import { createSanitizedError } from './Error';
21-
import defaultLogger from './logger';
2221

2322
// query and data are both provided in REST API format. So data
2423
// types are encoded by plain old objects.
@@ -201,11 +200,9 @@ RestWrite.prototype.validateClientClassCreation = function () {
201200
.then(schemaController => schemaController.hasClass(this.className))
202201
.then(hasClass => {
203202
if (hasClass !== true) {
204-
const log = (this.config && this.config.loggerController) || defaultLogger;
205203
throw createSanitizedError(
206204
Parse.Error.OPERATION_FORBIDDEN,
207205
'This user is not allowed to access non-existent class: ' + this.className,
208-
log
209206
);
210207
}
211208
});

src/rest.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,6 @@ function handleSessionMissingError(error, className, auth) {
327327
!auth.isMaster &&
328328
!auth.isMaintenance
329329
) {
330-
const { createSanitizedError } = require('./Error');
331-
332330
throw createSanitizedError(Parse.Error.SESSION_MISSING, 'Insufficient auth.');
333331
}
334332
throw error;

0 commit comments

Comments
 (0)