added json ignore tags because oc cyclic references in Logs

This commit is contained in:
Sarah Faey 2022-11-24 19:08:07 +01:00
parent fc5e75cc9d
commit f322c18c57
3 changed files with 8 additions and 6 deletions

View file

@ -1,5 +1,5 @@
using System.ComponentModel.DataAnnotations;
using System;
using System.Text.Json.Serialization;
namespace Lieb.Models.GuildWars2.Raid
{
@ -42,6 +42,7 @@ namespace Lieb.Models.GuildWars2.Raid
public int RaidId { get; set; }
[JsonIgnore(Condition = JsonIgnoreCondition.Always)]
public Raid Raid { get; set; }
}