fix: แก้ชนิด type ที่ reques
This commit is contained in:
parent
dc553379e1
commit
503e74ff13
1 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue