Skip to content

Commit 1bd317c

Browse files
committed
change search empty title to status 200 instead of 400
1 parent 8a9c566 commit 1bd317c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/question/src/controller/search-controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const searchQuestionsByTitle = async (req: Request, res: Response): Promi
77
const limit = parseInt(req.query.limit as string) || 10;
88

99
if (!title) {
10-
return res.status(400).json({ message: 'Title is required' });
10+
return res.status(200).json({ message: 'Title is required' });
1111
}
1212

1313
try {

0 commit comments

Comments
 (0)