fix: linter
This commit is contained in:
parent
09a11589d2
commit
5cea6929f9
4 changed files with 5 additions and 5 deletions
|
@ -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});
|
||||
}
|
||||
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue