From da7befa1b78a262564859407490e5cf676911c3f Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 5 Jul 2020 13:23:23 +0200 Subject: [PATCH] Fix token DM error --- PluralKit.Bot/Commands/Token.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PluralKit.Bot/Commands/Token.cs b/PluralKit.Bot/Commands/Token.cs index d2cb3720..c7345fd6 100644 --- a/PluralKit.Bot/Commands/Token.cs +++ b/PluralKit.Bot/Commands/Token.cs @@ -36,8 +36,7 @@ namespace PluralKit.Bot private async Task MakeAndSetNewToken(PKSystem system) { var patch = new SystemPatch {Token = StringUtils.GenerateToken()}; - await _db.Execute(conn => conn.UpdateSystem(system.Id, patch)); - + system = await _db.Execute(conn => conn.UpdateSystem(system.Id, patch)); return system.Token; }