Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
a91e9beb
Verified
Commit
a91e9beb
authored
Jun 21, 2022
by
Chocobozzz
Browse files
Update server dependencies
parent
35540f38
Changes
4
Hide whitespace changes
Inline
Side-by-side
scripts/parse-log.ts
View file @
a91e9beb
...
...
@@ -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
...
...
server/helpers/logger.ts
View file @
a91e9beb
...
...
@@ -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
...
...
server/lib/redis.ts
View file @
a91e9beb
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
re
dis
Client
WrapperForType
>
private
client
:
ReturnType
<
typeof
c
re
ate
Client
>
private
prefix
:
string
private
constructor
()
{
...
...
server/models/video/video-live-session.ts
View file @
a91e9beb
...
...
@@ -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
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment