🐛 Fix ensure profile created maintenance method
This commit is contained in:
parent
95b3ab6bcd
commit
aa0d2ab3c4
@ -55,6 +55,7 @@ public class AccountService(
|
|||||||
{
|
{
|
||||||
var accountsId = await db.Accounts.Select(a => a.Id).ToListAsync();
|
var accountsId = await db.Accounts.Select(a => a.Id).ToListAsync();
|
||||||
var missingId = await db.AccountProfiles
|
var missingId = await db.AccountProfiles
|
||||||
|
.IgnoreAutoIncludes()
|
||||||
.Where(p => !accountsId.Contains(p.AccountId))
|
.Where(p => !accountsId.Contains(p.AccountId))
|
||||||
.Select(p => p.AccountId)
|
.Select(p => p.AccountId)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user