Skip to content

Commit

Permalink
Update getQuestions function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
McNaBry committed Sep 16, 2024
1 parent 1d1065b commit d4938d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/question/src/controllers/questionController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Response } from 'express';
import { Request, Response } from 'express';
import { Question } from '../models/questionModel';

export const getQuestions = async (res: Response) => {
export const getQuestions = async (req: Request, res: Response) => {
const questions = await Question.find();
const questionTitles = questions.map(q => q.title);
res.status(200).json({
Expand Down

0 comments on commit d4938d9

Please sign in to comment.