mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: add missing await
This commit is contained in:
@@ -127,7 +127,7 @@ export class PasswordResetService {
|
||||
* @returns The signed JWT token.
|
||||
*/
|
||||
async sign(dto: UserRequestResetDto) {
|
||||
return this.jwtService.signAsync(dto, this.jwtSignOptions);
|
||||
return await this.jwtService.signAsync(dto, this.jwtSignOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -138,6 +138,6 @@ export class PasswordResetService {
|
||||
* @returns The decoded payload of the token.
|
||||
*/
|
||||
async verify(token: string): Promise<UserRequestResetDto> {
|
||||
return this.jwtService.verifyAsync(token, this.jwtSignOptions);
|
||||
return await this.jwtService.verifyAsync(token, this.jwtSignOptions);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ export class ValidateAccountService {
|
||||
* @returns A promise that resolves to the signed JWT token.
|
||||
*/
|
||||
async sign(dto: { email: string }) {
|
||||
return this.jwtService.signAsync(dto, this.jwtSignOptions);
|
||||
return await this.jwtService.signAsync(dto, this.jwtSignOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,7 +61,7 @@ export class ValidateAccountService {
|
||||
* @returns A promise that resolves to an object containing the user's email.
|
||||
*/
|
||||
async verify(token: string): Promise<{ email: string }> {
|
||||
return this.jwtService.verifyAsync(token, this.jwtSignOptions);
|
||||
return await this.jwtService.verifyAsync(token, this.jwtSignOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user