Merge pull request #750 from ajnart/fix-ping-status

🐛 Fix StatusCode not being used properly
This commit is contained in:
Thomas Camlong
2023-03-04 08:14:22 +09:00
committed by GitHub
6 changed files with 9 additions and 8 deletions

View File

@@ -159,7 +159,7 @@ const migrateService = (oldService: serviceItem, areaType: AreaType): ConfigAppT
},
network: {
enabledStatusChecker: oldService.ping ?? true,
okStatus: oldService.status?.map((str) => parseInt(str, 10)) ?? [200],
statusCodes: oldService.status ?? ['200'],
},
appearance: {
iconUrl: migrateIcon(oldService.icon),