From e6d33873b09106fb80cd41f299a8d1df714a7db2 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 13 Dec 2023 18:03:32 +0700 Subject: [PATCH] fix: typo --- Services/server/src/controllers/fileController.ts | 4 ++-- Services/server/src/controllers/subFolderFileController.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Services/server/src/controllers/fileController.ts b/Services/server/src/controllers/fileController.ts index 2e2be9f..94bd207 100644 --- a/Services/server/src/controllers/fileController.ts +++ b/Services/server/src/controllers/fileController.ts @@ -146,7 +146,7 @@ export class FileController extends Controller { @Path() folderName: string, ) { if (body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/`; @@ -257,7 +257,7 @@ export class FileController extends Controller { }, ): Promise { if (body.file && body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/`; diff --git a/Services/server/src/controllers/subFolderFileController.ts b/Services/server/src/controllers/subFolderFileController.ts index 6d109b4..acbf655 100644 --- a/Services/server/src/controllers/subFolderFileController.ts +++ b/Services/server/src/controllers/subFolderFileController.ts @@ -152,7 +152,7 @@ export class SubFolderFileController extends Controller { @Path() subFolderName: string, ) { if (body.file && body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/${subFolderName}/`; @@ -264,7 +264,7 @@ export class SubFolderFileController extends Controller { }, ) { if (body.file && body.file.length > 85) { - throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเิกนกำหนด"); + throw new HttpError(HttpStatusCode.BAD_REQUEST, "ชื่อไฟล์ยาวเกินกำหนด"); } const basePath = `${cabinetName}/${drawerName}/${folderName}/${subFolderName}/`;