mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:07:22 +01:00
migrate groups in priority of moderator, then pinned status
This commit is contained in:
parent
edb04c8d9d
commit
cdba293aa1
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ public static class SharedDbFunctions
|
|||
{
|
||||
bool groupHasMigrated = false;
|
||||
string newOwner = string.Empty;
|
||||
foreach (var potentialNewOwner in groupPairs)
|
||||
foreach (var potentialNewOwner in groupPairs.OrderByDescending(p => p.IsModerator).ThenByDescending(p => p.IsPinned).ToList())
|
||||
{
|
||||
groupHasMigrated = await TryMigrateGroup(context, group, potentialNewOwner.GroupUserUID, maxGroupsByUser).ConfigureAwait(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue