Skip to content

Commit

Permalink
Update return type of getQuestionByID
Browse files Browse the repository at this point in the history
  • Loading branch information
limcaaarl committed Oct 1, 2024
1 parent c9d042d commit 5e92b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/_services/question.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export class QuestionService {
return this.http.get<QuestionResponse>(this.baseUrl, { params });
}

getQuestionByID(id: number): Observable<QuestionResponse> {
return this.http.get<QuestionResponse>(this.baseUrl + '/' + id);
getQuestionByID(id: number): Observable<SingleQuestionResponse> {
return this.http.get<SingleQuestionResponse>(this.baseUrl + '/' + id);
}

getQuestionByParam(topics: string[], difficulty: string, limit?: number): Observable<QuestionResponse> {
Expand Down

0 comments on commit 5e92b9d

Please sign in to comment.