diff --git a/src/NadekoBot/Modules/Xp/XpService.cs b/src/NadekoBot/Modules/Xp/XpService.cs index 2373bf430..f3f131ef3 100644 --- a/src/NadekoBot/Modules/Xp/XpService.cs +++ b/src/NadekoBot/Modules/Xp/XpService.cs @@ -174,8 +174,6 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand var gxps = new List(globalToAdd.Count); await using (var ctx = _db.GetDbContext()) { - await using var tran = await ctx.Database.BeginTransactionAsync(); - // update global user xp in batches // group by xp amount and update the same amounts at the same time foreach (var group in globalToAdd.GroupBy(x => x.Value.XpAmount, x => x.Key)) @@ -209,8 +207,6 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand gxps.AddRange(items); } } - - await tran.CommitAsync(); } foreach (var du in dus)