Check for cancellation in SaveMediaAttachments.

This commit is contained in:
Andrew Mahone 2019-11-04 10:31:32 -05:00
parent 0dde5e46df
commit c2d8f210b1

View file

@ -6201,6 +6201,8 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
throw new ArgumentNullException(nameof(attachments));
}
cancellationToken.ThrowIfCancellationRequested();
using var connection = GetConnection();
connection.RunInTransaction(db =>
{