mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +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)
|
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…
Add table
Add a link
Reference in a new issue