@@ -2,7 +2,7 @@ import { Request, Response, NextFunction } from "express";
22import * as interviewService from "../services/interview.service" ;
33import { ApiError } from "../utils/apiError" ;
44
5- export const getInterviews = async ( req : Request , res : Response , next : NextFunction ) => {
5+ export const getInterviews = async ( req : Request , res : Response ) => {
66 const interviews = await interviewService . getInterviews ( ) ;
77
88 res . status ( 200 ) . json ( {
@@ -11,7 +11,7 @@ export const getInterviews = async (req: Request, res: Response, next: NextFunct
1111 } ) ;
1212} ;
1313
14- export const getInterviewById = async ( req : Request , res : Response , next : NextFunction ) => {
14+ export const getInterviewById = async ( req : Request , res : Response ) => {
1515 const interviewId = parseInt ( req . params . id ) ;
1616
1717 if ( ! interviewId ) {
@@ -31,7 +31,7 @@ export const getInterviewById = async (req: Request, res: Response, next: NextFu
3131} ;
3232
3333
34- export const createInterview = async ( req : Request , res : Response , next : NextFunction ) => {
34+ export const createInterview = async ( req : Request , res : Response ) => {
3535 const memberId = req . params . memberId ;
3636
3737 if ( ! memberId ) {
@@ -58,7 +58,7 @@ export const createInterview = async (req: Request, res: Response, next: NextFun
5858 } ) ;
5959} ;
6060
61- export const updateInterviewById = async ( req : Request , res : Response , next : NextFunction ) => {
61+ export const updateInterviewById = async ( req : Request , res : Response ) => {
6262 const interviewId = parseInt ( req . params . id ) ;
6363
6464 if ( ! interviewId ) {
@@ -97,7 +97,7 @@ export const updateInterviewById = async (req: Request, res: Response, next: Nex
9797} ;
9898
9999
100- export const deleteInterviewById = async ( req : Request , res : Response , next : NextFunction ) => {
100+ export const deleteInterviewById = async ( req : Request , res : Response ) => {
101101 const interviewId = parseInt ( req . params . id ) ;
102102
103103 if ( ! interviewId ) {
0 commit comments