We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aed5b5a commit 118bba9Copy full SHA for 118bba9
project/apps/questions-service/src/questions.service.ts
@@ -94,12 +94,12 @@ export class QuestionsService {
94
.single<QuestionDto>();
95
96
if (existingQuestion) {
97
- // this.handleError(
98
- // 'create question',
99
- // new BadRequestException(
100
- // `Question with title ${question.q_title} already exists`,
101
- // ),
102
- // );
+ this.handleError(
+ 'create question',
+ new BadRequestException(
+ `Question with title ${question.q_title} already exists`,
+ ),
+ );
103
}
104
105
const { data, error } = await this.supabase
0 commit comments