This commit is contained in:
Adisak 2025-10-15 11:52:52 +07:00
parent 1a50a62b7a
commit ef26d0f305

View file

@ -4975,9 +4975,9 @@ export class ProfileController extends Controller {
*
*/
@Post("cal/retire")
async calDateRetire(@Body() birthDate: Date) {
const retireDate = await calculateRetireDate(birthDate);
const age = calculateAge(birthDate);
async calDateRetire(@Body() body:{birthDate: Date}) {
const retireDate = await calculateRetireDate(body.birthDate);
const age = calculateAge(body.birthDate);
return new HttpSuccess({ retireDate, age });
}