Skip to content

Commit

Permalink
Fix casting
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Dec 16, 2024
1 parent 0cb24f9 commit b3bd221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GlobalRankLookupCache/Controllers/BeatmapItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private async Task repopulateScores()
int liveCount = (int)(long)(await cmd.ExecuteScalarAsync())!;

cmd.CommandText = $"select approved from osu_beatmaps where beatmap_id = {beatmapId}";
isQualified = (int)(await cmd.ExecuteScalarAsync())! == 3;
isQualified = (sbyte)(await cmd.ExecuteScalarAsync())! == 3;

// Check whether things actually changed enough to matter. If not, skip this update.
// Of note, if scores *reduced* we should update immediately. This may be a foul play score removed from the header of the leaderboard.
Expand Down

0 comments on commit b3bd221

Please sign in to comment.