fix: wrong error message
This commit is contained in:
parent
3fc70daed0
commit
28f35e7328
3 changed files with 171 additions and 179 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue