Adds missing await on transaction

This commit is contained in:
2025-01-07 03:08:44 -05:00
parent c3e51b74cc
commit 9c728d10c4

View File

@@ -1,10 +1,7 @@
using System.Collections.Concurrent; using System.Collections.Concurrent;
using Hutopy.Web.Common;
using Hutopy.Web.Common.BlobStorage; using Hutopy.Web.Common.BlobStorage;
using Hutopy.Web.Common.Security; using Hutopy.Web.Common.Security;
using Hutopy.Web.Features.Contents.Data; using Hutopy.Web.Features.Contents.Data;
using Hutopy.Web.Features.Contents.Handlers.Models;
using Microsoft.EntityFrameworkCore;
namespace Hutopy.Web.Features.Contents.Handlers; namespace Hutopy.Web.Features.Contents.Handlers;
@@ -69,7 +66,7 @@ public sealed class PostContent(
var urls = new ConcurrentBag<string>(); var urls = new ConcurrentBag<string>();
string? thumbnailUrl = null; string? thumbnailUrl = null;
using var transaction = await context.Database.BeginTransactionAsync(ct); await using var transaction = await context.Database.BeginTransactionAsync(ct);
try try
{ {