From 8938d347c6d5a995735cfd235e837538fa1c4cc8 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 7 Jun 2025 02:37:35 +0800 Subject: [PATCH] :bug: Fix disable factor did not update --- DysonNetwork.Sphere/Account/AccountService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DysonNetwork.Sphere/Account/AccountService.cs b/DysonNetwork.Sphere/Account/AccountService.cs index 62acb34..0a3048e 100644 --- a/DysonNetwork.Sphere/Account/AccountService.cs +++ b/DysonNetwork.Sphere/Account/AccountService.cs @@ -184,6 +184,9 @@ public class AccountService( "Disabling this auth factor will cause you have no active auth factors."); factor.EnabledAt = SystemClock.Instance.GetCurrentInstant(); + db.Update(factor); + await db.SaveChangesAsync(); + return factor; }