Skip to content

Commit

Permalink
updated references to use BaseSqlProvider.TotalRowsAffected
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSort committed Jul 3, 2024
1 parent d406b8c commit 30069ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Dynamicweb.DataIntegration" Version="10.6.2" />
<PackageReference Include="Dynamicweb.DataIntegration" Version="10.6.3" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
</Project>
6 changes: 4 additions & 2 deletions src/UserProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
using Dynamicweb.Extensibility.AddIns;
using Dynamicweb.Extensibility.Editors;
using Dynamicweb.Logging;
using Dynamicweb.Security.Permissions;
using Dynamicweb.Security.UserManagement;
using Dynamicweb.Security.UserManagement.Common.SystemFields;
using Microsoft.CodeAnalysis;
using System;
Expand Down Expand Up @@ -723,6 +721,7 @@ public override bool RunJob(Job job)
sqlTransaction.Commit();
Writer.SendUserPasswords();
MoveRepositoriesIndexToJob(job);
TotalRowsAffected += Writer.RowsAffected;
}
catch (Exception ex)
{
Expand Down Expand Up @@ -751,6 +750,9 @@ public override bool RunJob(Job job)

if (sqlTransaction != null)
sqlTransaction.Rollback();

TotalRowsAffected = 0;

return false;
}
finally
Expand Down

0 comments on commit 30069ce

Please sign in to comment.