- upgrade react-resizable-panels to latest version

- update translations
- remove cypress
- add await to all return blocks
This commit is contained in:
Amruth Pillai
2023-11-19 09:52:55 +01:00
parent 9c4db2956b
commit 8b217dfcfa
95 changed files with 4162 additions and 4213 deletions

View File

@ -152,8 +152,6 @@ export class AuthService {
const text = `Please click on the link below to reset your password:\n\n${url}`;
await this.mailService.sendEmail({ to: email, subject, text });
return;
}
async updatePassword(email: string, password: string) {
@ -188,8 +186,6 @@ export class AuthService {
const text = `Please verify your email address by clicking on the link below:\n\n${url}`;
await this.mailService.sendEmail({ to: email, subject, text });
return;
} catch (error) {
throw new InternalServerErrorException(error);
}

View File

@ -13,7 +13,7 @@ export class LocalStrategy extends PassportStrategy(Strategy, "local") {
async validate(identifier: string, password: string) {
try {
return this.authService.authenticate({ identifier, password });
return await this.authService.authenticate({ identifier, password });
} catch (error) {
throw new BadRequestException(ErrorMessage.InvalidCredentials);
}