Switched to net9 and finished event workflow

This commit is contained in:
2026-01-18 19:30:20 +01:00
parent 8d0573eb7e
commit 2d3c973d47
23 changed files with 142 additions and 40 deletions

View File

@@ -29,6 +29,10 @@ public class EventsDashboardRepo(DatabaseContext context, DashboardAuthHandler h
}
public async Task CreateItem(Event item) {
var creator = await handler.GetCurrentUser();
context.Attach(creator!);
item.Host = creator!;
await context.Events.AddAsync(item);
await context.SaveChangesAsync();
}