Skip to content

Commit 16936d3

Browse files
committed
fix: Lets set the total count of mods instead of results, since we always fetch a single one
1 parent aa82774 commit 16936d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CFLookup/Jobs/GetLatestUpdatedModPerGame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public async static Task RunAsync(PerformContext context)
7474
if (latestUpdatedMod != null && latestUpdatedMod.Pagination != null && latestUpdatedMod.Pagination.ResultCount > 0)
7575
{
7676
await db.ExecuteNonQueryAsync("UPDATE ProcessingGames SET LastUpdate = GETUTCDATE(), ModCount = @modCount WHERE GameId = @gameId",
77-
new SqlParameter("@modCount", latestUpdatedMod.Pagination.ResultCount),
77+
new SqlParameter("@modCount", latestUpdatedMod.Pagination.TotalCount),
7878
new SqlParameter("@gameId", game.Id)
7979
);
8080

0 commit comments

Comments
 (0)