🐛 Fixes on magic spell services

This commit is contained in:
LittleSheep 2025-05-24 22:59:05 +08:00
parent 363c1aedf4
commit 80b7812a87

View File

@ -101,7 +101,7 @@ public class MagicSpellService(
var contactMethod = spell.Meta["contact_method"] as string;
var contact = await
db.AccountContacts.FirstOrDefaultAsync(c =>
c.Account.Id == spell.AccountId && c.Content == contactMethod
c.Content == contactMethod
);
if (contact is not null)
{