fix
This commit is contained in:
parent
1a50a62b7a
commit
ef26d0f305
1 changed files with 3 additions and 3 deletions
|
|
@ -4975,9 +4975,9 @@ export class ProfileController extends Controller {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Post("cal/retire")
|
@Post("cal/retire")
|
||||||
async calDateRetire(@Body() birthDate: Date) {
|
async calDateRetire(@Body() body:{birthDate: Date}) {
|
||||||
const retireDate = await calculateRetireDate(birthDate);
|
const retireDate = await calculateRetireDate(body.birthDate);
|
||||||
const age = calculateAge(birthDate);
|
const age = calculateAge(body.birthDate);
|
||||||
|
|
||||||
return new HttpSuccess({ retireDate, age });
|
return new HttpSuccess({ retireDate, age });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue