Latest changes to server code

This commit is contained in:
Timothy Baldridge 2021-04-13 15:59:40 -06:00
parent b4b4ff070e
commit cb40768760
2 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,7 @@ namespace Wabbajack.Server.Test
var result = var result =
await client.GetStringAsync($"{Consts.WabbajackBuildServerUri}author_controls/login/{Fixture.APIKey}"); await client.GetStringAsync($"{Consts.WabbajackBuildServerUri}author_controls/login/{Fixture.APIKey}");
Assert.Contains("Wabbajack Files -", result); Assert.Contains("Wabbajack Files", result);
} }
} }
} }

View File

@ -64,9 +64,12 @@ namespace Wabbajack.Server.Services
try try
{ {
if (!await mainArchive.State.Verify(mainArchive)) if (mainArchive.State is WabbajackCDNDownloader.State)
{ {
mainFailed = true; if (!await mainArchive.State.Verify(mainArchive))
{
mainFailed = true;
}
} }
} }
catch (Exception ex) catch (Exception ex)