Fix token DM error

This commit is contained in:
Ske 2020-07-05 13:23:23 +02:00
parent f03bab303c
commit da7befa1b7

View File

@ -36,8 +36,7 @@ namespace PluralKit.Bot
private async Task<string> MakeAndSetNewToken(PKSystem system) private async Task<string> MakeAndSetNewToken(PKSystem system)
{ {
var patch = new SystemPatch {Token = StringUtils.GenerateToken()}; 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; return system.Token;
} }