fix
This commit is contained in:
parent
4a3cc7a330
commit
83406751c7
3 changed files with 9 additions and 9 deletions
|
|
@ -155,7 +155,7 @@ export class ProfileAssessmentsController extends Controller {
|
|||
|
||||
await this.profileAssessmentsRepository.save(data);
|
||||
|
||||
return this.setStatus(HttpStatus.NO_CONTENT);
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
@Patch("{assessmentId}")
|
||||
|
|
@ -180,7 +180,7 @@ export class ProfileAssessmentsController extends Controller {
|
|||
this.profileAssessmentsRepository.save(record),
|
||||
this.profileAssessmentsHistoryRepository.save(history),
|
||||
]);
|
||||
return this.setStatus(HttpStatus.NO_CONTENT);
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
@Delete("{assessmentId}")
|
||||
|
|
@ -194,6 +194,6 @@ export class ProfileAssessmentsController extends Controller {
|
|||
if (result.affected && result.affected <= 0)
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
|
||||
|
||||
return this.setStatus(HttpStatus.NO_CONTENT);
|
||||
return new HttpSuccess();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue