From 5f324a234813c0a9fb8c2340cc7afdbc5720fc54 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 7 Sep 2025 12:23:03 +0800 Subject: [PATCH] :bug: Ignore point data to avoid cycling --- DysonNetwork.Pass/Account/ActionLog.cs | 3 ++- DysonNetwork.Pass/Auth/AuthSession.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Pass/Account/ActionLog.cs b/DysonNetwork.Pass/Account/ActionLog.cs index 827ff20..837f365 100644 --- a/DysonNetwork.Pass/Account/ActionLog.cs +++ b/DysonNetwork.Pass/Account/ActionLog.cs @@ -1,5 +1,6 @@ using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +using System.Text.Json.Serialization; using DysonNetwork.Shared.Data; using DysonNetwork.Shared.Proto; using NodaTime.Serialization.Protobuf; @@ -14,7 +15,7 @@ public class ActionLog : ModelBase [Column(TypeName = "jsonb")] public Dictionary Meta { get; set; } = new(); [MaxLength(512)] public string? UserAgent { get; set; } [MaxLength(128)] public string? IpAddress { get; set; } - public Point? Location { get; set; } + [JsonIgnore] public Point? Location { get; set; } public Guid AccountId { get; set; } public Account Account { get; set; } = null!; diff --git a/DysonNetwork.Pass/Auth/AuthSession.cs b/DysonNetwork.Pass/Auth/AuthSession.cs index 8d4b157..8be39a1 100644 --- a/DysonNetwork.Pass/Auth/AuthSession.cs +++ b/DysonNetwork.Pass/Auth/AuthSession.cs @@ -69,7 +69,7 @@ public class AuthChallenge : ModelBase [MaxLength(128)] public string? IpAddress { get; set; } [MaxLength(512)] public string? UserAgent { get; set; } [MaxLength(1024)] public string? Nonce { get; set; } - public Point? Location { get; set; } + [JsonIgnore] public Point? Location { get; set; } public Guid AccountId { get; set; } [JsonIgnore] public Account.Account Account { get; set; } = null!;