Revert a few changes that broke the build

This commit is contained in:
halgari 2024-05-26 21:33:31 -06:00
parent b84bfe2364
commit 37a5b7ce28
2 changed files with 4 additions and 5 deletions

View File

@ -14,10 +14,10 @@ namespace Wabbajack.CLI.Verbs;
public class SetNexusApiKey
{
private readonly EncryptedJsonTokenProvider<NexusApiState> _tokenProvider;
private readonly EncryptedJsonTokenProvider<NexusOAuthState> _tokenProvider;
private readonly ILogger<SetNexusApiKey> _logger;
public SetNexusApiKey(EncryptedJsonTokenProvider<NexusApiState> tokenProvider, ILogger<SetNexusApiKey> logger)
public SetNexusApiKey(EncryptedJsonTokenProvider<NexusOAuthState> tokenProvider, ILogger<SetNexusApiKey> logger)
{
_tokenProvider = tokenProvider;
_logger = logger;
@ -38,7 +38,7 @@ public class SetNexusApiKey
}
else
{
await _tokenProvider.SetToken(new NexusApiState { ApiKey = key });
await _tokenProvider.SetToken(new NexusOAuthState { ApiKey = key });
_logger.LogInformation("Set Nexus API Key to {key}", key);
return 0;
}

View File

@ -8,13 +8,12 @@
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
<Version>$(VERSION)</Version>
<AssemblyName>wabbajack-cli</AssemblyName>
<PublishTrimmed>false</PublishTrimmed>
<PublishTrimmed>true</PublishTrimmed>
<TimeMode>linked</TimeMode>
<NoWarn>CS8600</NoWarn>
<NoWarn>CS8601</NoWarn>
<NoWarn>CS8618</NoWarn>
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>