fix: path cal/retire
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m0s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-15 11:58:33 +07:00
parent 63aa67a1fe
commit 4f0f475b4d

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