Skip to content

Commit

Permalink
Merge pull request #27 from mju-likelion/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
ndaemy authored Mar 5, 2023
2 parents 2f49788 + ef842cd commit 6248662
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/api/applications/applications.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ export class ApplicationsService {
}

async uploadCv(cv: Express.Multer.File, sid: string) {
const filename = `${sid}-${cv.originalname.replaceAll(' ', '-')}`;
const filename = `${sid}-${Buffer.from(cv.originalname, 'latin1')
.toString('utf-8')
.replaceAll(' ', '-')}`;
const path = `cv/${filename}`;

try {
Expand Down
4 changes: 2 additions & 2 deletions src/api/manager/manager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class ManagerService {
where: { email },
});
if (managerExist) {
throw new BadRequestException('User is arleady exist');
throw new BadRequestException('User is already exist');
}
const verifyToken = await this.generateRandomCode();
await this.emailService.sendVerifyCodeEmail(email, name, verifyToken);
Expand Down Expand Up @@ -54,7 +54,7 @@ export class ManagerService {
if (!managerExist) {
throw new NotFoundException('User is not exist');
} else if (managerExist.password) {
throw new BadRequestException('User password is arleady reigistered');
throw new BadRequestException('User password is already registered');
}
await this.managerRepository.update({ email }, { password });
return {
Expand Down

0 comments on commit 6248662

Please sign in to comment.