mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-15 17:50:48 +02: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> {
|
): Promise<PublicSignupTokenSchema> {
|
||||||
const response = await this.db<ITokenRow>(TABLE).insert(
|
const response = await this.db<ITokenRow>(TABLE).insert(
|
||||||
toRow(newToken),
|
toRow(newToken),
|
||||||
['*'],
|
['secret'],
|
||||||
);
|
);
|
||||||
return toTokens(response)[0];
|
return this.get(response[0].secret);
|
||||||
}
|
}
|
||||||
|
|
||||||
async isValid(secret: string): Promise<boolean> {
|
async isValid(secret: string): Promise<boolean> {
|
||||||
|
Loading…
Reference in New Issue
Block a user