From 54e516eebb3b8509cf710a5c8f7f3f2e863c79c2 Mon Sep 17 00:00:00 2001 From: ndaemy Date: Sun, 5 Mar 2023 04:03:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EC=98=A4=ED=83=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manager/manager.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/manager/manager.service.ts b/src/api/manager/manager.service.ts index dacccb9..dfa60d2 100644 --- a/src/api/manager/manager.service.ts +++ b/src/api/manager/manager.service.ts @@ -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); @@ -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 { From 7758638eaa3d12b75ed595eca084d04ff8a5063d Mon Sep 17 00:00:00 2001 From: ndaemy Date: Sun, 5 Mar 2023 22:45:38 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EC=9C=88=EB=8F=84=EC=9A=B0=20?= =?UTF-8?q?=ED=95=9C=EA=B8=80=20=EC=9D=B4=20***=EB=93=A4=EC=95=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/applications/applications.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/applications/applications.service.ts b/src/api/applications/applications.service.ts index 1eb236e..3ff054f 100644 --- a/src/api/applications/applications.service.ts +++ b/src/api/applications/applications.service.ts @@ -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 {