Verified Commit a91e9beb authored by Chocobozzz's avatar Chocobozzz
Browse files

Update server dependencies

parent 35540f38
......@@ -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
......
......@@ -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
......
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 () {
......
......@@ -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
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment