mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 08:40:11 +00:00
Migrate GetSystemById
This commit is contained in:
parent
511cf0ab55
commit
c927967c3b
5 changed files with 11 additions and 12 deletions
|
|
@ -94,7 +94,7 @@ namespace PluralKit.Bot
|
|||
|
||||
try
|
||||
{
|
||||
var system = ctx.SystemId != null ? await _data.GetSystemById(ctx.SystemId.Value) : null;
|
||||
var system = ctx.SystemId != null ? await _db.Execute(c => c.QuerySystem(ctx.SystemId.Value)) : null;
|
||||
await _tree.ExecuteCommand(new Context(_services, evt.Client, evt.Message, argPos, system, ctx));
|
||||
}
|
||||
catch (PKError)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue