Skip to content

Commit

Permalink
Fix non-generic ASF crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Jul 31, 2024
1 parent 3339ec6 commit d65a3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FreePackages/FreePackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JsonElem
case "FreePackagesFilter": {
FilterConfig? filter = configProperty.Value.ToJsonObject<FilterConfig>();
if (filter != null) {
bot.ArchiLogger.LogGenericInfo("Free Packages Filter : " + JsonSerializer.Serialize(filter));
bot.ArchiLogger.LogGenericInfo("Free Packages Filter : " + filter.ToJsonText());
filterConfigs.Add(filter);
}
break;
Expand All @@ -78,7 +78,7 @@ public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JsonElem
case "FreePackagesFilters": {
List<FilterConfig>? filters = configProperty.Value.ToJsonObject<List<FilterConfig>>();
if (filters != null) {
bot.ArchiLogger.LogGenericInfo("Free Packages Filters : " + JsonSerializer.Serialize(filters));
bot.ArchiLogger.LogGenericInfo("Free Packages Filters : " + filters.ToJsonText());
filterConfigs.AddRange(filters);
}
break;
Expand Down

0 comments on commit d65a3f4

Please sign in to comment.