Migrate GetSystemById

This commit is contained in:
Ske
2020-06-13 19:42:04 +02:00
parent 511cf0ab55
commit c927967c3b
5 changed files with 11 additions and 12 deletions

View File

@@ -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)