diff --git a/src/Web/Features/Contents/Handlers/CreateContent.cs b/src/Web/Features/Contents/Handlers/CreateContent.cs index 5905ff6..4d1cad1 100644 --- a/src/Web/Features/Contents/Handlers/CreateContent.cs +++ b/src/Web/Features/Contents/Handlers/CreateContent.cs @@ -1,10 +1,7 @@ using System.Collections.Concurrent; -using Hutopy.Web.Common; using Hutopy.Web.Common.BlobStorage; using Hutopy.Web.Common.Security; using Hutopy.Web.Features.Contents.Data; -using Hutopy.Web.Features.Contents.Handlers.Models; -using Microsoft.EntityFrameworkCore; namespace Hutopy.Web.Features.Contents.Handlers; @@ -69,7 +66,7 @@ public sealed class PostContent( var urls = new ConcurrentBag(); string? thumbnailUrl = null; - using var transaction = await context.Database.BeginTransactionAsync(ct); + await using var transaction = await context.Database.BeginTransactionAsync(ct); try {