Fix token DM error
This commit is contained in:
parent
f03bab303c
commit
da7befa1b7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user