Skip to content

Commit d63a584

Browse files
committed
Fix crash when sending a binary version
1 parent 25373c1 commit d63a584

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

OculusDB/Users/DiscordWebhook.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Net;
1212
using ComputerUtils.Logging;
1313
using System.Text.Json;
14+
using OculusGraphQLApiLib.Results;
1415

1516
namespace OculusDB.Users
1617
{
@@ -95,7 +96,7 @@ public void SendDiscordWebhook(BsonDocument activity)
9596
meta.Add("Version code", v.versionCode.ToString());
9697
meta.Add("Downloadable", (v.releaseChannels.Count != 0).ToString());
9798
List<string> releaseChannels = new List<string>();
98-
foreach (DBReleaseChannel channel in v.releaseChannels) releaseChannels.Add(channel.channel_name);
99+
foreach (ReleaseChannelWithoutLatestSupportedBinary channel in v.releaseChannels) releaseChannels.Add(channel.channel_name);
99100
meta.Add("Release channels", String.Join(", ", releaseChannels));
100101
meta.Add("Id", v.id);
101102
meta.Add("Headset", HeadsetTools.GetHeadsetDisplayName(v.parentApplication.hmd));

0 commit comments

Comments
 (0)