This commit is contained in:
AdisakKanthawilang 2024-03-14 10:07:22 +07:00
parent 4a3cc7a330
commit 83406751c7
3 changed files with 9 additions and 9 deletions

View file

@ -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();
}
}