2
0

Bug where Value was not returned

This commit is contained in:
glax 2023-05-19 20:35:51 +02:00
parent b040419e12
commit c9602d5f67

View File

@ -12,7 +12,7 @@ app.MapGet("/GetPublications", (string connectorName, string? title) =>
{ {
Connector? connector = taskManager.GetAvailableConnectors().FirstOrDefault(c => c.Key == connectorName).Value; Connector? connector = taskManager.GetAvailableConnectors().FirstOrDefault(c => c.Key == connectorName).Value;
if (connector is null) if (connector is null)
JsonSerializer.Serialize($"Connector {connectorName} is not a known connector."); return JsonSerializer.Serialize($"Connector {connectorName} is not a known connector.");
Publication[] publications; Publication[] publications;
if (title is not null) if (title is not null)