diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index fe65b695..52c13443 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -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 }); }