mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat: split out messages table from main database
This commit is contained in:
parent
09ac002d26
commit
bf7747ab34
14 changed files with 119 additions and 84 deletions
|
|
@ -89,4 +89,12 @@ public partial class ModelRepository
|
|||
if (oldMember != null)
|
||||
_ = _dispatch.Dispatch(oldMember.System, oldMember.Uuid, DispatchEvent.DELETE_MEMBER);
|
||||
}
|
||||
|
||||
public async Task<bool> IsMemberOwnedByAccount(MemberId id, ulong userId)
|
||||
{
|
||||
return await _db.QueryFirst<bool>(
|
||||
"select true from accounts, members where members.id = @member and accounts.uid = @account and members.system = accounts.system",
|
||||
new { member = id, account = userId }
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue