Adds missing await on transaction
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user