fix: repair missing reported birth-time status

This commit is contained in:
Jesse_Chen
2026-07-26 13:14:14 +08:00
parent 5f492be1b9
commit cdf7a76766
6 changed files with 146 additions and 9 deletions
+1 -3
View File
@@ -163,9 +163,7 @@ export async function PATCH(request: Request) {
if (currentProfileError) {
return NextResponse.json({ error: "暂时无法核对现有出生资料" }, { status: 500 });
}
const applicationPatch = currentProfile
? resolveAccountBirthTimeApplicationPatch(currentProfile, payload)
: {};
const applicationPatch = resolveAccountBirthTimeApplicationPatch(currentProfile, payload);
const baseProfile = {
id: userId,
...(payload.name !== undefined ? { name: payload.name } : {}),