Skip to content

Commit 118bba9

Browse files
authored
[Questions] Create duplicated question title hotfix (#15)
1 parent aed5b5a commit 118bba9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

project/apps/questions-service/src/questions.service.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ export class QuestionsService {
9494
.single<QuestionDto>();
9595

9696
if (existingQuestion) {
97-
// this.handleError(
98-
// 'create question',
99-
// new BadRequestException(
100-
// `Question with title ${question.q_title} already exists`,
101-
// ),
102-
// );
97+
this.handleError(
98+
'create question',
99+
new BadRequestException(
100+
`Question with title ${question.q_title} already exists`,
101+
),
102+
);
103103
}
104104

105105
const { data, error } = await this.supabase

0 commit comments

Comments
 (0)