mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix broken ingest code
This commit is contained in:
parent
4cfcf9c6c5
commit
7f669885a2
@ -112,14 +112,18 @@ namespace Wabbajack.BuildServer.Controllers
|
||||
|
||||
foreach (var record in data.ModInfos)
|
||||
{
|
||||
await SQL.AddNexusModInfo(GameRegistry.GetByFuzzyName(record.Game).Game, record.ModId,
|
||||
if (!GameRegistry.TryGetByFuzzyName(record.Game, out var game)) continue;
|
||||
|
||||
await SQL.AddNexusModInfo(game.Game, record.ModId,
|
||||
record.LastCheckedUTC, record.Data);
|
||||
totalRows += 1;
|
||||
}
|
||||
|
||||
foreach (var record in data.FileInfos)
|
||||
{
|
||||
await SQL.AddNexusFileInfo(GameRegistry.GetByFuzzyName(record.Game).Game, record.ModId,
|
||||
if (!GameRegistry.TryGetByFuzzyName(record.Game, out var game)) continue;
|
||||
|
||||
await SQL.AddNexusFileInfo(game.Game, record.ModId,
|
||||
long.Parse(record.FileId),
|
||||
record.LastCheckedUTC, record.Data);
|
||||
totalRows += 1;
|
||||
@ -127,7 +131,9 @@ namespace Wabbajack.BuildServer.Controllers
|
||||
|
||||
foreach (var record in data.ModFiles)
|
||||
{
|
||||
await SQL.AddNexusModFiles(GameRegistry.GetByFuzzyName(record.Game).Game, record.ModId,
|
||||
if (!GameRegistry.TryGetByFuzzyName(record.Game, out var game)) continue;
|
||||
|
||||
await SQL.AddNexusModFiles(game.Game, record.ModId,
|
||||
record.LastCheckedUTC, record.Data);
|
||||
totalRows += 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user