Skip to content

Commit a40041d

Browse files
committed
Updates copyright and dependencies
Updates the copyright to use the current year. Bumps the versions of AsyncFixer and MinVer dependencies to the latest versions. Updates Foundatio.Parsers.ElasticQueries package version. Changes MarkMigrationStartedAsync to be non-async.
1 parent a6c7ff3 commit a40041d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build/common.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ReferenceFoundatioRepositoriesSource>false</ReferenceFoundatioRepositoriesSource>
1313
<FoundatioProjectsDir>$(ProjectDir)..\..\..\</FoundatioProjectsDir>
1414

15-
<Copyright>Copyright (c) 2025 Foundatio. All rights reserved.</Copyright>
15+
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) Foundatio. All rights reserved.</Copyright>
1616
<Authors>FoundatioFx</Authors>
1717
<NoWarn>$(NoWarn);CS1591</NoWarn>
1818
<WarningsAsErrors>true</WarningsAsErrors>
@@ -39,8 +39,8 @@
3939

4040
<ItemGroup>
4141
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
42-
<PackageReference Include="AsyncFixer" Version="1.6.0" PrivateAssets="All" />
43-
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="All" />
42+
<PackageReference Include="AsyncFixer" Version="2.1.0" PrivateAssets="All" />
43+
<PackageReference Include="MinVer" Version="6.1.0" PrivateAssets="All" />
4444
</ItemGroup>
4545

4646
<ItemGroup>

src/Foundatio.Repositories.Elasticsearch/Foundatio.Repositories.Elasticsearch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Compile Include="..\Foundatio.Repositories\Extensions\TaskExtensions.cs" Link="Extensions\TaskExtensions.cs" />
44
</ItemGroup>
55
<ItemGroup>
6-
<PackageReference Include="Foundatio.Parsers.ElasticQueries" Version="7.17.19" Condition="'$(ReferenceFoundatioRepositoriesSource)' == '' OR '$(ReferenceFoundatioRepositoriesSource)' == 'false'" />
6+
<PackageReference Include="Foundatio.Parsers.ElasticQueries" Version="7.17.20" Condition="'$(ReferenceFoundatioRepositoriesSource)' == '' OR '$(ReferenceFoundatioRepositoriesSource)' == 'false'" />
77
<ProjectReference Include="$(FoundatioProjectsDir)Foundatio.Parsers\src\Foundatio.Parsers.ElasticQueries\Foundatio.Parsers.ElasticQueries.csproj" Condition="'$(ReferenceFoundatioRepositoriesSource)' == 'true'" />
88
<ProjectReference Include="..\Foundatio.Repositories\Foundatio.Repositories.csproj" />
99
</ItemGroup>

src/Foundatio.Repositories/Migration/MigrationManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ await _resiliencePolicy.ExecuteAsync(async () =>
158158
return MigrationResult.Success;
159159
}
160160

161-
private async Task MarkMigrationStartedAsync(MigrationInfo info)
161+
private Task MarkMigrationStartedAsync(MigrationInfo info)
162162
{
163163
_logger.LogInformation("Starting migration {Id}...", info.Migration.GetId());
164164
if (info.State == null)
@@ -171,13 +171,13 @@ private async Task MarkMigrationStartedAsync(MigrationInfo info)
171171
StartedUtc = _timeProvider.GetUtcNow().UtcDateTime
172172
};
173173

174-
await _migrationStatusRepository.AddAsync(info.State);
174+
return _migrationStatusRepository.AddAsync(info.State);
175175
}
176176
else
177177
{
178178
info.State.StartedUtc = _timeProvider.GetUtcNow().UtcDateTime;
179179
info.State.Version = info.Migration.Version ?? 0;
180-
await _migrationStatusRepository.SaveAsync(info.State);
180+
return _migrationStatusRepository.SaveAsync(info.State);
181181
}
182182
}
183183

0 commit comments

Comments
 (0)