Skip to content

Commit 2aa2979

Browse files
committed
Merge branch 'vnext'
2 parents e27667f + 317222d commit 2aa2979

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CompatBot/Commands/Misc.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ public static async ValueTask Game(SlashCommandContext ctx)
256256

257257
int tmpRng;
258258
lock (rng) tmpRng = rng.Next(count);
259-
productCode = await db.Thumbnail.Skip(tmpRng).Take(1).FirstOrDefaultAsync().ConfigureAwait(false);
259+
productCode = await db.Thumbnail
260+
.AsNoTracking()
261+
.Skip(tmpRng)
262+
.FirstOrDefaultAsync()
263+
.ConfigureAwait(false);
260264
if (productCode is null)
261265
{
262266
await ctx.RespondAsync($"{Config.Reactions.Failure} Sorry, there's something wrong with my brains today. Try again or something.", ephemeral: true).ConfigureAwait(false);

0 commit comments

Comments
 (0)