Merge pull request #950 from Zhou-Shilin/master

Fix: Typo `donwload`
This commit is contained in:
unitwk 2023-07-21 17:55:27 +08:00 committed by GitHub
commit b742d51965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export default class SystemConfig {
// Maximum simultaneous compression tasks
maxCompress: number = 1;
// Maximum simultaneous download tasks
maxDonwload: number = 10;
maxDownload: number = 10;
// Decompression implementation form
zipType: number = 1;
// Login times IP limit

View File

@ -27,7 +27,7 @@ router.put("/setting", validator({ body: {} }), permission({ level: 10 }), async
if (config.crossDomain != null) systemConfig.crossDomain = config.crossDomain;
if (config.gzip != null) systemConfig.gzip = config.gzip;
if (config.maxCompress != null) systemConfig.maxCompress = config.maxCompress;
if (config.maxDonwload != null) systemConfig.maxDonwload = config.maxDonwload;
if (config.maxDownload != null) systemConfig.maxDownload = config.maxDownload;
if (config.zipType != null) systemConfig.zipType = config.zipType;
if (config.loginCheckIp != null) systemConfig.loginCheckIp = config.loginCheckIp;
if (config.forwardType != null) systemConfig.forwardType = Number(config.forwardType);