File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Foundatio.Repositories.Elasticsearch
Foundatio.Repositories/Migration Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments