🐛 Fix ensure profile created maintenance method

This commit is contained in:
LittleSheep 2025-05-22 01:59:45 +08:00
parent 95b3ab6bcd
commit aa0d2ab3c4

View File

@ -55,6 +55,7 @@ public class AccountService(
{
var accountsId = await db.Accounts.Select(a => a.Id).ToListAsync();
var missingId = await db.AccountProfiles
.IgnoreAutoIncludes()
.Where(p => !accountsId.Contains(p.AccountId))
.Select(p => p.AccountId)
.ToListAsync();