diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index d3c93cee5..7a50d9f2f 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts @@ -39,7 +39,7 @@ const loggerFormat = winston.format.printf((info) => { if (CONFIG.LOG.PRETTIFY_SQL) { additionalInfos += '\n' + sqlFormat(info.sql, { language: 'sql', - indent: ' ' + tabWidth: 2 }) } else { additionalInfos += ' - ' + info.sql diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index 5fe3646c5..4fbaf8a73 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts @@ -57,7 +57,7 @@ const consoleLoggerFormat = format.printf(info => { if (CONFIG.LOG.PRETTIFY_SQL) { additionalInfos += '\n' + sqlFormat(info.sql, { language: 'sql', - indent: ' ' + tabWidth: 2 }) } else { additionalInfos += ' - ' + info.sql diff --git a/server/lib/redis.ts b/server/lib/redis.ts index 158f3c080..d6d053d2f 100644 --- a/server/lib/redis.ts +++ b/server/lib/redis.ts @@ -1,4 +1,4 @@ -import { createClient, RedisClientOptions, RedisModules, RedisScripts } from 'redis' +import { createClient, RedisClientOptions, RedisModules } from 'redis' import { exists } from '@server/helpers/custom-validators/misc' import { sha256 } from '@shared/extra-utils' import { logger } from '../helpers/logger' @@ -16,16 +16,12 @@ import { WEBSERVER } from '../initializers/constants' -// Only used for typings -// TODO: remove when https://github.com/microsoft/TypeScript/issues/37181 is fixed -const redisClientWrapperForType = () => createClient<{}, RedisScripts>() - class Redis { private static instance: Redis private initialized = false private connected = false - private client: ReturnType + private client: ReturnType private prefix: string private constructor () { diff --git a/server/models/video/video-live-session.ts b/server/models/video/video-live-session.ts index 2b4cde9f8..836620872 100644 --- a/server/models/video/video-live-session.ts +++ b/server/models/video/video-live-session.ts @@ -110,7 +110,7 @@ export class VideoLiveSessionModel extends Model = { + const query: FindOptions> = { where: { liveVideoId: videoId },