1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Migrate eslint to v9

This commit is contained in:
Chocobozzz 2025-05-06 16:02:38 +02:00
parent bad8ea2c2e
commit 034e1bf328
No known key found for this signature in database
GPG key ID: 583A612D890159BE
106 changed files with 2130 additions and 1445 deletions

View file

@ -122,7 +122,7 @@ export function makeUploadRequest (
method?: 'POST' | 'PUT'
fields: { [fieldName: string]: any }
attaches?: { [attachName: string]: any | any[] }
attaches?: { [attachName: string]: any }
}
) {
let req = options.method === 'PUT'

View file

@ -5,12 +5,14 @@ export function setDefaultVideoChannel (servers: PeerTubeServer[]) {
return Promise.all(
servers.map(s => {
return s.users.getMyInfo()
.then(user => { s.store.channel = user.videoChannels[0] })
.then(user => {
s.store.channel = user.videoChannels[0]
})
})
)
}
export async function setDefaultChannelAvatar (serversArg: PeerTubeServer | PeerTubeServer[], channelName: string = 'root_channel') {
export async function setDefaultChannelAvatar (serversArg: PeerTubeServer | PeerTubeServer[], channelName = 'root_channel') {
const servers = arrayify(serversArg)
return Promise.all(