From 7cb17409cd3221ac805d75fac51c589b610e7979 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 24 Nov 2024 15:39:44 +0100 Subject: [PATCH] fix: explicitly set sids to null so the find free sid functions actually trigger --- Foxnouns.Backend/Controllers/MembersController.cs | 1 + Foxnouns.Backend/Services/Auth/AuthService.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Foxnouns.Backend/Controllers/MembersController.cs b/Foxnouns.Backend/Controllers/MembersController.cs index 22d23d4..ba9cf28 100644 --- a/Foxnouns.Backend/Controllers/MembersController.cs +++ b/Foxnouns.Backend/Controllers/MembersController.cs @@ -94,6 +94,7 @@ public class MembersController( Names = req.Names ?? [], Pronouns = req.Pronouns ?? [], Unlisted = req.Unlisted ?? false, + Sid = null!, }; db.Add(member); diff --git a/Foxnouns.Backend/Services/Auth/AuthService.cs b/Foxnouns.Backend/Services/Auth/AuthService.cs index 9675f22..adbf5b1 100644 --- a/Foxnouns.Backend/Services/Auth/AuthService.cs +++ b/Foxnouns.Backend/Services/Auth/AuthService.cs @@ -45,6 +45,7 @@ public class AuthService( }, }, LastActive = clock.GetCurrentInstant(), + Sid = null!, }; db.Add(user); @@ -88,6 +89,7 @@ public class AuthService( }, }, LastActive = clock.GetCurrentInstant(), + Sid = null!, }; db.Add(user);