Update server dependencies

pull/5023/head
Chocobozzz 2022-06-21 11:16:38 +02:00
parent 35540f3806
commit a91e9beb3f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 5 additions and 9 deletions

View File

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

View File

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

View File

@ -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<typeof redisClientWrapperForType>
private client: ReturnType<typeof createClient>
private prefix: string
private constructor () {

View File

@ -110,7 +110,7 @@ export class VideoLiveSessionModel extends Model<Partial<AttributesOnly<VideoLiv
static listSessionsOfLiveForAPI (options: { videoId: number }) {
const { videoId } = options
const query: FindOptions<VideoLiveSessionModel> = {
const query: FindOptions<AttributesOnly<VideoLiveSessionModel>> = {
where: {
liveVideoId: videoId
},