mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fixed missing role by calling get after insert (#2091)
* fixed missing role by calling get after insert * update snapshot
This commit is contained in:
parent
b206d582ed
commit
0da2054aa4
@ -152,9 +152,9 @@ export class PublicSignupTokenStore implements IPublicSignupTokenStore {
|
||||
): Promise<PublicSignupTokenSchema> {
|
||||
const response = await this.db<ITokenRow>(TABLE).insert(
|
||||
toRow(newToken),
|
||||
['*'],
|
||||
['secret'],
|
||||
);
|
||||
return toTokens(response)[0];
|
||||
return this.get(response[0].secret);
|
||||
}
|
||||
|
||||
async isValid(secret: string): Promise<boolean> {
|
||||
|
Loading…
Reference in New Issue
Block a user