Skip to content

Commit

Permalink
Submissions/Submit - trim quotes from submitted branch name, resolves #…
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Jul 14, 2024
1 parent f372cde commit 6d164b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TASVideos/Pages/Submissions/Submit.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ public async Task<IActionResult> OnGet()

public async Task<IActionResult> OnPost()
{
await using var dbTransaction = await db.Database.BeginTransactionAsync();
var nextWindow = await queueService.ExceededSubmissionLimit(User.GetUserId());
if (nextWindow is not null)
{
Expand Down Expand Up @@ -114,11 +113,12 @@ public async Task<IActionResult> OnPost()
return Page();
}

await using var dbTransaction = await db.Database.BeginTransactionAsync();
var submission = new Submission
{
SubmittedGameVersion = GameVersion,
GameName = GameName,
Branch = GoalName,
Branch = GoalName?.Trim('\"'),
RomName = RomName,
EmulatorVersion = Emulator,
EncodeEmbedLink = youtubeSync.ConvertToEmbedLink(EncodeEmbeddedLink),
Expand Down

0 comments on commit 6d164b6

Please sign in to comment.