Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/d28d3f2254197691694ff38a0c3d6f089e37f763
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
1 additions and
1 deletions
@ -112,7 +112,7 @@ router.get('/delete/:deleteId', (req, res, next) => {
if ( deleteId !== fileData . deleteId ) return res . sendStatus ( CODE _UNAUTHORIZED ) ;
// Save the file information
return Promise . all ( [ s3enabled ? deleteS3 ( fileData ) : fs . rmSync ( path ( fileData . path ) ) , ( ! fileData . is || ( fileData . is . image || fileData . is . video ) ) ? fs . rmSync ( path ( diskFilePath , 'thumbnails/' , fileData . thumbnail ) ) : ( ) => Promise . resolve ( ) ] ) ;
return Promise . all ( [ s3enabled ? deleteS3 ( fileData ) : fs . rmSync ( path ( fileData . path ) ) , ( ! fileData . is || ( fileData . is . image || fileData . is . video ) ) ? fs . rmSync ( path ( diskFilePath , 'thumbnails/' , fileData . thumbnail ) ) . catch ( ( err ) => ( { } ) ) : ( ) => Promise . resolve ( ) ] ) ;
} )
. then ( ( ) => data . del ( req . ass . resourceId ) )
. then ( ( ) => ( log . success ( 'Deleted' , oldName , oldType ) , res . type ( 'text' ) . send ( 'File has been deleted!' ) ) ) // skipcq: JS-0090