fix: แก้ชนิด type ที่ reques

This commit is contained in:
Net 2024-03-13 11:17:21 +07:00
parent dc553379e1
commit 503e74ff13

View file

@ -21,7 +21,11 @@ import HttpStatus from "../interfaces/http-status";
import HttpSuccess from "../interfaces/http-success";
import { AppDataSource } from "../database/data-source";
import { CreateProfileAssessment, ProfileAssessment } from "../entities/ProfileAssessment";
import {
CreateProfileAssessment,
ProfileAssessment,
UpdateProfileAssessment,
} from "../entities/ProfileAssessment";
import { ProfileAssessmentHistory } from "../entities/ProfileAssessmentHistory";
import { Profile } from "../entities/Profile";
import { RequestWithUser } from "../middlewares/user";
@ -156,7 +160,7 @@ export class ProfileAssessmentsController extends Controller {
@Patch("{assessmentId}")
public async editProfileAssessment(
@Body() requestBody: CreateProfileAssessment,
@Body() requestBody: UpdateProfileAssessment,
@Request() req: RequestWithUser,
@Path() assessmentId: string,
) {