2
0

wrong array

This commit is contained in:
glax 2023-07-31 01:30:32 +02:00
parent 3aa299e48a
commit 01c8784bab

View File

@ -60,7 +60,7 @@ public static class Migrator
if (kavitaNode is not null)
lms.Add(new Kavita(kavitaNode["baseUrl"]!.GetValue<string>(), kavitaNode["auth"]!.GetValue<string>(), null));
JsonArray notificationManagers = node["libraryManagers"]!.AsArray();
JsonArray notificationManagers = node["notificationManagers"]!.AsArray();
JsonNode? gotifyNode = notificationManagers.FirstOrDefault(nm =>
nm["notificationManagerType"].GetValue<byte>() == (byte)NotificationManager.NotificationManagerType.Gotify);
JsonNode? lunaSeaNode = notificationManagers.FirstOrDefault(nm =>