fix: wrong error message

This commit is contained in:
Methapon2001 2023-11-27 12:04:14 +07:00
parent 3fc70daed0
commit 28f35e7328
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
3 changed files with 171 additions and 179 deletions

View file

@ -53,7 +53,7 @@ export class FolderController extends Controller {
@Post("/")
@Tags("Folder")
@Security("bearerAuth", ["admin"])
@Response(HttpStatusCode.NOT_FOUND, "ไม่พบของแฟ้ม")
@Response(HttpStatusCode.NOT_FOUND, "ไม่พบตำแหน่งที่ต้องการสร้างแฟ้ม")
@Response(HttpStatusCode.INTERNAL_SERVER_ERROR, "เกิดข้อผิดพลาดกับระบบจัดการไฟล์")
@SuccessResponse(HttpStatusCode.CREATED, "สำเร็จ")
public async createFolder(
@ -72,7 +72,7 @@ export class FolderController extends Controller {
}),
)
) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบแฟ้ม");
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบตำแหน่งที่ต้องการสร้างแฟ้ม");
}
const created = await minioClient