Skip to content

Commit

Permalink
⛏ Add Json Ignore Attribute for Hook
Browse files Browse the repository at this point in the history
πŸ› Fix circular reference
  • Loading branch information
furkandeveloper committed Aug 5, 2021
1 parent aba055b commit fff8ae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/IronHook.Core/Entities/HookRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace IronHook.Core.Entities
Expand Down Expand Up @@ -46,6 +47,7 @@ public class HookRequest : BaseEntity
/// <summary>
/// Relation property
/// </summary>
[JsonIgnore]
public virtual Hook Hook { get; set; }

/// <summary>
Expand Down

0 comments on commit fff8ae1

Please sign in to comment.