Adds missing await on transaction
This commit is contained in:
@@ -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>();
|
||||
string? thumbnailUrl = null;
|
||||
|
||||
using var transaction = await context.Database.BeginTransactionAsync(ct);
|
||||
await using var transaction = await context.Database.BeginTransactionAsync(ct);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user