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:
parent
bad8ea2c2e
commit
034e1bf328
106 changed files with 2130 additions and 1445 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue