Updated to latest mooncore version. Cleaned up some crud controllers and replaced DataTable with the new DataGrid component

This commit is contained in:
2025-09-16 12:09:20 +00:00
parent 8e242dc8da
commit 86bec7f2ee
21 changed files with 492 additions and 848 deletions

View File

@@ -80,7 +80,7 @@ public class UserAuthService
permissions = ["*"];
}
user = await UserRepository.Add(new User()
user = await UserRepository.AddAsync(new User()
{
Email = email,
TokenValidTimestamp = DateTimeOffset.UtcNow.AddMinutes(-1),
@@ -94,7 +94,7 @@ public class UserAuthService
if (user.Username != username)
{
user.Username = username;
await UserRepository.Update(user);
await UserRepository.UpdateAsync(user);
}
// Enrich claims with required metadata

View File

@@ -35,8 +35,8 @@ public class UserDeletionService
public async Task Delete(User user, bool force)
{
foreach (var handler in Handlers)
await Delete(user, force);
await handler.Delete(user, force);
await UserRepository.Remove(user);
await UserRepository.RemoveAsync(user);
}
}