fix: linter

This commit is contained in:
Gabriellvl 2025-04-07 16:34:12 +02:00
parent 09a11589d2
commit 5cea6929f9
4 changed files with 5 additions and 5 deletions

View file

@ -26,7 +26,7 @@ export class AnswerController extends BaseController {
return this.get<AnswerResponse>(`/${seq}`, {lang: this.loId.lang});
}
async create(answerData: AnswerData) {
async create(answerData: AnswerData): Promise<AnswerResponse> {
return this.post<AnswerResponse>("/", answerData, {lang: this.loId.lang});
}

View file

@ -28,11 +28,11 @@ export class QuestionController extends BaseController {
return this.post<QuestionResponse>("/", questionData, {lang: this.loId.lang})
}
async remove(sequenceNumber: number) {
async remove(sequenceNumber: number): Promise<QuestionResponse> {
return this.delete<QuestionResponse>(`/${sequenceNumber}`, {lang: this.loId.lang});
}
async update(sequenceNumber: number, questionData: QuestionData) {
async update(sequenceNumber: number, questionData: QuestionData): Promise<QuestionResponse> {
return this.put<QuestionResponse>(`/${sequenceNumber}`, questionData, {lang: this.loId.lang});
}
}