1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +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

@ -273,25 +273,18 @@ async function getObjectStorageFileSize (options: {
export {
type BucketInfo,
buildKey,
storeObject,
storeContent,
storeStream,
removeObject,
removeObjectByFullKey,
removePrefix,
makeAvailable,
updateObjectACL,
updatePrefixACL,
listKeysOfPrefix,
createObjectReadStream,
getObjectStorageFileSize
}
@ -344,11 +337,15 @@ async function uploadToStorage (options: {
logger.debug(
'Completed %s%s in bucket %s',
bucketInfo.PREFIX, objectStorageKey, bucketInfo.BUCKET_NAME, { ...lTags(), responseMetadata: response.$metadata }
bucketInfo.PREFIX,
objectStorageKey,
bucketInfo.BUCKET_NAME,
{ ...lTags(), responseMetadata: response.$metadata }
)
return getInternalUrl(bucketInfo, objectStorageKey)
} catch (err) {
// eslint-disable-next-line @typescript-eslint/only-throw-error
throw parseS3Error(err)
}
}

View file

@ -87,8 +87,7 @@ function handleObjectStorageFailure (res: express.Response, err: Error) {
return res.fail({
status: HttpStatusCode.INTERNAL_SERVER_ERROR_500,
message: err.message,
type: err.name
message: err.message
})
}