fix: explicitly set sids to null so the find free sid functions actually trigger

This commit is contained in:
sam 2024-11-24 15:39:44 +01:00
parent 4e9c4af4a5
commit 7cb17409cd
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
2 changed files with 3 additions and 0 deletions

View file

@ -94,6 +94,7 @@ public class MembersController(
Names = req.Names ?? [], Names = req.Names ?? [],
Pronouns = req.Pronouns ?? [], Pronouns = req.Pronouns ?? [],
Unlisted = req.Unlisted ?? false, Unlisted = req.Unlisted ?? false,
Sid = null!,
}; };
db.Add(member); db.Add(member);

View file

@ -45,6 +45,7 @@ public class AuthService(
}, },
}, },
LastActive = clock.GetCurrentInstant(), LastActive = clock.GetCurrentInstant(),
Sid = null!,
}; };
db.Add(user); db.Add(user);
@ -88,6 +89,7 @@ public class AuthService(
}, },
}, },
LastActive = clock.GetCurrentInstant(), LastActive = clock.GetCurrentInstant(),
Sid = null!,
}; };
db.Add(user); db.Add(user);