mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-21 03:12:10 +08:00
fix: old config update
This commit is contained in:
parent
9170dbc557
commit
5bd093ec94
@ -18,6 +18,7 @@ function readCategoryConfig(configCategory: string, callback: (config: any) => b
|
||||
}
|
||||
|
||||
function refactorInstanceConfig(config: any) {
|
||||
if (isNaN(config.passWordType)) config.passWordType = 0;
|
||||
if (typeof config.endTime === "string") {
|
||||
config.endTime = new Date(config.endTime).getTime();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user