potentially fix group migration

This commit is contained in:
rootdarkarchon
2022-12-14 17:40:48 +01:00
parent 87fdd55c50
commit a054ddaee0

View File

@@ -158,7 +158,7 @@ public class CleanupService : IHostedService, IDisposable
if (ownerHasLeft)
{
var groupPairs = await dbContext.GroupPairs.Where(g => g.GroupGID == userGroupPair.GroupGID).ToListAsync().ConfigureAwait(false);
var groupPairs = await dbContext.GroupPairs.Where(g => g.GroupGID == userGroupPair.GroupGID && g.GroupUserUID != user.UID).ToListAsync().ConfigureAwait(false);
if (!groupPairs.Any())
{