feat: image url migration

registrations can now store image urls, which will be shown at view.html
This commit is contained in:
2025-06-02 03:01:10 +02:00
parent 4a82822d64
commit f7583738d7
12 changed files with 675 additions and 14 deletions

View File

@@ -5,15 +5,10 @@ using WebApp.Entities;
namespace WebApp.Endpoints;
public class GeneralUseHelpers
public class GeneralUseHelpers(ApplicationDbContext context)
{
private readonly ApplicationDbContext _context;
public GeneralUseHelpers(ApplicationDbContext context)
{
_context = context;
}
private readonly ApplicationDbContext _context = context;
async public Task<Token?> FindTokenFromString(string token_str)
{
@@ -129,6 +124,7 @@ public class GeneralUseHelpers
OrganisationName = e.Organisation!.Name,
Title = e.Title,
Description = e.Description ?? "",
ImageURL = e.ImageURL,
Location = e.Location,
EventDate = e.EventDate,
EventSkills = e
@@ -175,6 +171,7 @@ public class GeneralUseHelpers
Organisation = e.Organisation!.Name,
Title = e.Title,
Description = e.Description ?? "",
ImageURL = e.ImageURL,
Location = e.Location,
EventDate = e.EventDate,
EventSkills = e