mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 20:18:25 +02:00
* Code cleanup and eslint since -- remove unused variables, clean up RegExs, so on...
This commit is contained in:
parent
a106050ba3
commit
ac1433e84b
112 changed files with 1375 additions and 1898 deletions
|
@ -59,7 +59,7 @@ class FileAreaWebAccess {
|
|||
return callback(null); // not enabled, but no error
|
||||
}
|
||||
}
|
||||
],
|
||||
],
|
||||
err => {
|
||||
return cb(err);
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ class FileAreaWebAccess {
|
|||
getExistingTempDownloadServeItem(client, fileEntry, cb) {
|
||||
if(!this.isEnabled()) {
|
||||
return cb(notEnabledError());
|
||||
}
|
||||
}
|
||||
|
||||
const hashId = this.getSingleFileHashId(client, fileEntry);
|
||||
this.loadServedHashId(hashId, (err, servedItem) => {
|
||||
|
@ -201,10 +201,10 @@ class FileAreaWebAccess {
|
|||
return cb(err);
|
||||
}
|
||||
|
||||
servedItem.url = this.buildSingleFileTempDownloadLink(client, fileEntry);
|
||||
servedItem.url = this.buildSingleFileTempDownloadLink(client, fileEntry);
|
||||
|
||||
return cb(null, servedItem);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
_addOrUpdateHashIdRecord(dbOrTrans, hashId, expireTime, cb) {
|
||||
|
@ -219,7 +219,7 @@ class FileAreaWebAccess {
|
|||
}
|
||||
|
||||
this.scheduleExpire(hashId, expireTime);
|
||||
|
||||
|
||||
return cb(null);
|
||||
}
|
||||
);
|
||||
|
@ -476,7 +476,7 @@ class FileAreaWebAccess {
|
|||
StatLog.incrementUserStat(user, 'dl_total_bytes', dlBytes);
|
||||
StatLog.incrementSystemStat('dl_total_count', 1);
|
||||
StatLog.incrementSystemStat('dl_total_bytes', dlBytes);
|
||||
|
||||
|
||||
return callback(null);
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue