minor change
This commit is contained in:
@ -49,5 +49,5 @@ pack:
|
|||||||
script:
|
script:
|
||||||
- dotnet pack --configuration Release --no-restore
|
- dotnet pack --configuration Release --no-restore
|
||||||
- cd src/nuget-cli
|
- cd src/nuget-cli
|
||||||
- dotnet run push -s $NUGETSOURCE -k "$NUGETSOURCEAPIKEY" ../nuget-host/bin/Release/nuget-host.*.nupkg
|
- dotnet run push -s $NUGETSOURCE -k $NUGETSOURCEAPIKEY ../nuget-host/bin/Release/nuget-host.*.nupkg
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ namespace nuget_host.Controllers
|
|||||||
var apikey = dbContext.ApiKeys.SingleOrDefault(k => k.Id == clearkey);
|
var apikey = dbContext.ApiKeys.SingleOrDefault(k => k.Id == clearkey);
|
||||||
if (apikey == null)
|
if (apikey == null)
|
||||||
{
|
{
|
||||||
logger.LogInformation("403 : no api-key");
|
logger.LogError("403 : no api-key");
|
||||||
return Unauthorized();
|
return Unauthorized();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user