Fix Prettier (#7066)

This commit is contained in:
Diamond Lewis
2020-12-13 11:19:04 -06:00
committed by GitHub
parent d4948572a8
commit 033a0bd443
64 changed files with 697 additions and 1887 deletions

View File

@@ -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) {

View File

@@ -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';