mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Copy and paste error
This commit is contained in:
@@ -74,7 +74,7 @@ public class Owncast(ChatBot kfChatBot) : IDisposable
|
|||||||
var content = await response.Content.ReadFromJsonAsync<JsonElement>(cancellationToken: ct);
|
var content = await response.Content.ReadFromJsonAsync<JsonElement>(cancellationToken: ct);
|
||||||
logger.Debug("Owncast endpoint returned the following JSON");
|
logger.Debug("Owncast endpoint returned the following JSON");
|
||||||
logger.Debug(content.GetRawText);
|
logger.Debug(content.GetRawText);
|
||||||
return content.GetProperty("data").Deserialize<OwncastStatusModel>() ?? throw new InvalidOperationException();
|
return content.Deserialize<OwncastStatusModel>() ?? throw new InvalidOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
|
|||||||
Reference in New Issue
Block a user