Fix Prettier (#7066)
This commit is contained in:
@@ -20,11 +20,7 @@ function configureTransports(options) {
|
||||
{
|
||||
filename: 'parse-server.info',
|
||||
json: true,
|
||||
format: format.combine(
|
||||
format.timestamp(),
|
||||
format.splat(),
|
||||
format.json()
|
||||
),
|
||||
format: format.combine(format.timestamp(), format.splat(), format.json()),
|
||||
},
|
||||
options
|
||||
)
|
||||
@@ -37,11 +33,7 @@ function configureTransports(options) {
|
||||
{
|
||||
filename: 'parse-server.err',
|
||||
json: true,
|
||||
format: format.combine(
|
||||
format.timestamp(),
|
||||
format.splat(),
|
||||
format.json()
|
||||
),
|
||||
format: format.combine(format.timestamp(), format.splat(), format.json()),
|
||||
},
|
||||
options,
|
||||
{ level: 'error' }
|
||||
@@ -120,9 +112,7 @@ export function addTransport(transport) {
|
||||
|
||||
export function removeTransport(transport) {
|
||||
const matchingTransport = logger.transports.find(t1 => {
|
||||
return typeof transport === 'string'
|
||||
? t1.name === transport
|
||||
: t1 === transport;
|
||||
return typeof transport === 'string' ? t1.name === transport : t1 === transport;
|
||||
});
|
||||
|
||||
if (matchingTransport) {
|
||||
|
||||
@@ -28,8 +28,7 @@ export class WinstonLoggerAdapter extends LoggerAdapter {
|
||||
options = {};
|
||||
}
|
||||
// defaults to 7 days prior
|
||||
const from =
|
||||
options.from || new Date(Date.now() - 7 * MILLISECONDS_IN_A_DAY);
|
||||
const from = options.from || new Date(Date.now() - 7 * MILLISECONDS_IN_A_DAY);
|
||||
const until = options.until || new Date();
|
||||
const limit = options.size || 10;
|
||||
const order = options.order || 'desc';
|
||||
|
||||
Reference in New Issue
Block a user