mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
workaround an issue with organization not being found, fix needed
This commit is contained in:
@@ -58,6 +58,10 @@ namespace WebApp.Endpoints
|
||||
// to zwróć także EventRegistrations. W przeciwnym razie usuń to pole
|
||||
// przed jego wysłaniem!
|
||||
if (org is null || org.OrganisationId != Eve.OrganisationId) Eve.EventRegistrations = [];
|
||||
|
||||
// DLACZEGO?
|
||||
Eve.Organisation = await guhf.GetOrganisationFromId(Eve.OrganisationId);
|
||||
|
||||
EventDetailsDto EveDto = Eve.ToEventDetailsDto();
|
||||
|
||||
return Results.Ok(EveDto); //EventDetailsDto
|
||||
|
||||
Reference in New Issue
Block a user