Check for cancellation in SaveMediaAttachments.

pull/1838/head
Andrew Mahone 5 years ago
parent 0dde5e46df
commit c2d8f210b1

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

Loading…
Cancel
Save