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

@ -184,7 +184,7 @@ export class ProfileEducationsController extends Controller {
await this.profileEducationRepo.save(data);
return this.setStatus(HttpStatus.NO_CONTENT);
return new HttpSuccess();
}
@Patch("{educationId}")
@ -210,7 +210,7 @@ export class ProfileEducationsController extends Controller {
this.profileEducationHistoryRepo.save(history),
]);
return this.setStatus(HttpStatus.NO_CONTENT);
return new HttpSuccess();
}
@Delete("{educationId}")
@ -224,6 +224,6 @@ export class ProfileEducationsController extends Controller {
if (result.affected && result.affected <= 0)
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูล");
return this.setStatus(HttpStatus.NO_CONTENT);
return new HttpSuccess();
}
}