fix typo (#2525)
This commit is contained in:
committed by
Florent Vilmart
parent
c0249283ac
commit
24a2416d10
@@ -3,7 +3,7 @@ import PromiseRouter from '../PromiseRouter';
|
|||||||
import * as middleware from "../middlewares";
|
import * as middleware from "../middlewares";
|
||||||
|
|
||||||
export class LogsRouter extends PromiseRouter {
|
export class LogsRouter extends PromiseRouter {
|
||||||
|
|
||||||
mountRoutes() {
|
mountRoutes() {
|
||||||
this.route('GET','/scriptlog', middleware.promiseEnforceMasterKeyAccess, this.validateRequest, (req) => {
|
this.route('GET','/scriptlog', middleware.promiseEnforceMasterKeyAccess, this.validateRequest, (req) => {
|
||||||
return this.handleGET(req);
|
return this.handleGET(req);
|
||||||
@@ -13,7 +13,7 @@ export class LogsRouter extends PromiseRouter {
|
|||||||
validateRequest(req) {
|
validateRequest(req) {
|
||||||
if (!req.config || !req.config.loggerController) {
|
if (!req.config || !req.config.loggerController) {
|
||||||
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
|
throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED,
|
||||||
'Logger adapter is not availabe');
|
'Logger adapter is not available');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,9 +30,9 @@ export class LogsRouter extends PromiseRouter {
|
|||||||
const until = req.query.until;
|
const until = req.query.until;
|
||||||
let size = req.query.size;
|
let size = req.query.size;
|
||||||
if (req.query.n) {
|
if (req.query.n) {
|
||||||
size = req.query.n;
|
size = req.query.n;
|
||||||
}
|
}
|
||||||
|
|
||||||
const order = req.query.order
|
const order = req.query.order
|
||||||
const level = req.query.level;
|
const level = req.query.level;
|
||||||
const options = {
|
const options = {
|
||||||
|
|||||||
Reference in New Issue
Block a user