Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
drmodun committed Jan 3, 2024
1 parent f33a94d commit 79b21e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class AuthController {

@Post('login/sponsor')
async login(@Body() login: SponsorLoginDto) {
const accessToken = await this.authService.CompanyPasswordLogin(
const accessToken = await this.authService.companyPasswordLogin(
login.email,
login.password,
);
Expand Down
4 changes: 2 additions & 2 deletions apps/api/src/auth/sponsor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export class AuthService {
private jwtService: JwtService,
) {}

async CompanyPasswordLogin(email: string, password: string) {
async companyPasswordLogin(email: string, password: string) {
if (!email) {
throw new BadRequestException('email is required');
throw new BadRequestException('Email is required');
}

if (!password) {
Expand Down

0 comments on commit 79b21e9

Please sign in to comment.