mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-29 05:56:08 +02:00
Fix various minor mistakes
This commit is contained in:
parent
351ae52776
commit
c9ff904b2b
7 changed files with 17 additions and 18 deletions
|
@ -387,13 +387,11 @@ exports.getModule = class UploadModule extends MenuModule {
|
|||
self.client.log.error(
|
||||
'Failed moving physical upload file', { error : err.message, fileName : newEntry.fileName, source : src, dest : dst }
|
||||
);
|
||||
|
||||
if(!err && dst !== finalPath) {
|
||||
// name changed; ajust before persist
|
||||
newEntry.fileName = paths.basename(finalPath);
|
||||
}
|
||||
|
||||
return nextEntry(null); // still try next file
|
||||
} else if(dst !== finalPath)
|
||||
{
|
||||
// name changed; adjust before persist
|
||||
newEntry.fileName = paths.basename(finalPath);
|
||||
}
|
||||
|
||||
self.client.log.debug('Moved upload to area', { path : finalPath } );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue