1
0
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:
andreas-unleash 2022-09-26 16:50:54 +03:00 committed by GitHub
parent b206d582ed
commit 0da2054aa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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> {