Skip to content

Commit 5104e11

Browse files
grachovRomainLanz
authored andcommitted
fix(verifyEmail): added missing await (#26)
1 parent aadab73 commit 5104e11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Persona.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,8 @@ class Persona {
559559
*/
560560
if (user.account_status === this.config.newAccountState) {
561561
user.account_status = this.config.verifiedAccountState
562-
this.removeToken(token, 'email')
563562
await user.save()
563+
await this.removeToken(token, 'email')
564564
}
565565

566566
return user

0 commit comments

Comments
 (0)