fix: old config update

This commit is contained in:
Unitwk 2024-08-27 16:47:15 +08:00
parent 9170dbc557
commit 5bd093ec94

View File

@ -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;