Skip to content

Commit

Permalink
chore: Add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Apr 21, 2024
1 parent d87c133 commit dcb46b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class LoginUserCommandHandler implements ICommandHandler<LoginUse
void this.eventBus.publish(authSession.pullDomainEvents());
}

private async guardIsValidLogin(command: LoginUserCommand) {
private async guardIsValidLogin(command: LoginUserCommand): Promise<void> {
const isValid: boolean = await this.socialAuthenticator.login(command.token);
if (!isValid) {
throw new LoginException(command.email);
Expand Down

0 comments on commit dcb46b8

Please sign in to comment.