mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix some stupid bugs in the cache server
This commit is contained in:
parent
0c518c48ec
commit
127a8ff09c
@ -46,7 +46,7 @@ namespace Wabbajack.CacheServer
|
||||
return api.GetModInfo(GameRegistry.GetByNexusName((string)arg.GameName).Game, (string)arg.ModID).ToJSON();
|
||||
}
|
||||
|
||||
private object HandleGetFiles(dynamic arg)
|
||||
private object HandleFileID(dynamic arg)
|
||||
{
|
||||
Utils.Log($"{DateTime.Now} - File Info - {arg.GameName}/{arg.ModID}/{arg.FileID}");
|
||||
var api = new NexusApiClient(Request.Headers["apikey"].FirstOrDefault());
|
||||
@ -58,11 +58,11 @@ namespace Wabbajack.CacheServer
|
||||
}).ToJSON();
|
||||
}
|
||||
|
||||
private object HandleFileID(dynamic arg)
|
||||
private object HandleGetFiles(dynamic arg)
|
||||
{
|
||||
Utils.Log($"{DateTime.Now} - Mod Files - {arg.GameName} {arg.ModID}");
|
||||
var api = new NexusApiClient(Request.Headers["apikey"].FirstOrDefault());
|
||||
return api.GetModFiles(GameRegistry.GetByNexusName(arg.GameName), arg.ModID).ToJSON();
|
||||
return api.GetModFiles(GameRegistry.GetByNexusName((string)arg.GameName).Game, (int)arg.ModID).ToJSON();
|
||||
}
|
||||
|
||||
private string HandleCacheCall(dynamic arg)
|
||||
|
Loading…
Reference in New Issue
Block a user