File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/c#/GeneralUpdate.ClientCore Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ private async Task ExecuteWorkflowAsync()
171171 BlackListManager . Instance ? . AddBlackFiles ( _configInfo . BlackFiles ) ;
172172 BlackListManager . Instance ? . AddBlackFileFormats ( _configInfo . BlackFormats ) ;
173173 BlackListManager . Instance ? . AddSkipDirectorys ( _configInfo . SkipDirectorys ) ;
174-
174+
175175 _configInfo . Encoding = GetOption ( UpdateOption . Encoding ) ?? Encoding . Default ;
176176 _configInfo . Format = GetOption ( UpdateOption . Format ) ?? Format . ZIP ;
177177 _configInfo . DownloadTimeOut = GetOption ( UpdateOption . DownloadTimeOut ) == 0
@@ -185,7 +185,7 @@ private async Task ExecuteWorkflowAsync()
185185 if ( _configInfo . IsMainUpdate )
186186 {
187187 _configInfo . UpdateVersions = upgradeResp . Body . OrderBy ( x => x . ReleaseDate ) . ToList ( ) ;
188- _configInfo . LastVersion = _configInfo . UpdateVersions . Last ( ) . Version ;
188+ _configInfo . LastVersion = mainResp . Body . OrderBy ( x => x . ReleaseDate ) . Last ( ) . Version ;
189189
190190 var failed = CheckFail ( _configInfo . LastVersion ) ;
191191 if ( failed ) return ;
You can’t perform that action at this time.
0 commit comments