mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-07 06:17:55 +00:00
Fix token DM error
This commit is contained in:
parent
f03bab303c
commit
da7befa1b7
1 changed files with 1 additions and 2 deletions
|
|
@ -36,8 +36,7 @@ namespace PluralKit.Bot
|
|||
private async Task<string> 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue