Skip to content

Commit

Permalink
Test CI/CD Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadSaeedGoda committed Mar 28, 2024
1 parent b5cc3fb commit 5429a80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/auth/src/layers/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import bcrypt from 'bcrypt';
import fs from 'fs'
import { AuthRepository, authRepository } from './auth.repository';
import { User } from '../entity/auth.model';
import { requiredEnvVars } from '../config/app-config';
import { ValidationError } from '../errors/customErrors';
import { Validator } from '../utils/validator';
import path from 'path';
Expand Down Expand Up @@ -48,7 +47,7 @@ export class AuthService {
const existingUser = await this.authRepository.getUserByEmail(user.email);

if (existingUser) {
throw new ValidationError('Email is already taken');
throw new ValidationError('This email already exists');
}

return await this.authRepository.saveUser(user);
Expand Down

0 comments on commit 5429a80

Please sign in to comment.