chore: fix husky

This commit is contained in:
sam 2024-10-02 00:16:20 +02:00
parent 06f7019330
commit 5fab66444f
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
4 changed files with 9 additions and 16 deletions

View file

@ -112,12 +112,12 @@ public static class Users
foreach (var field in oldUser.Fields ?? [])
{
var entries = field.Entries.Select(entry => new FieldEntry
{
Value = entry.Value,
Status = prefMapping.TryGetValue(entry.Status, out var newStatus)
{
Value = entry.Value,
Status = prefMapping.TryGetValue(entry.Status, out var newStatus)
? newStatus.ToString()
: entry.Status,
})
})
.ToList();
user.Fields.Add(new Field