mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
feat: image url migration
registrations can now store image urls, which will be shown at view.html
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user