diff --git a/src/Turnierplan.App/Endpoints/Applications/CreateApplicationEndpoint.cs b/src/Turnierplan.App/Endpoints/Applications/CreateApplicationEndpoint.cs index 4b220a3f..fdea7b1f 100644 --- a/src/Turnierplan.App/Endpoints/Applications/CreateApplicationEndpoint.cs +++ b/src/Turnierplan.App/Endpoints/Applications/CreateApplicationEndpoint.cs @@ -30,7 +30,10 @@ private static async Task Handle( return result; } - var tournamentPlanner = await tournamentPlannerRepository.GetByPublicIdAsync(tournamentPlannerId, ITournamentPlannerRepository.Includes.TournamentClasses); + // Applications must be included in the query to ensure that we can generate a unique application tag + var tournamentPlanner = await tournamentPlannerRepository.GetByPublicIdAsync( + tournamentPlannerId, + ITournamentPlannerRepository.Includes.TournamentClasses | ITournamentPlannerRepository.Includes.Applications); if (tournamentPlanner is null) {