fix: typo

This commit is contained in:
Methapon2001 2023-12-13 18:03:32 +07:00
parent 0f694ea777
commit e6d33873b0
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 4 additions and 4 deletions

View file

@ -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<void | { upload: 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}/`;

View file

@ -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}/`;