fix: persist reported birth-time status

This commit is contained in:
Jesse_Chen
2026-07-22 12:10:56 +08:00
parent c2213cd4e6
commit 753210747a
4 changed files with 37 additions and 5 deletions
+8 -1
View File
@@ -132,7 +132,14 @@ export async function PATCH(request: Request) {
}
const applicationPatch = currentProfile
? resolveAccountBirthTimeApplicationPatch(currentProfile, payload)
: {};
: payload.birth_time_source
? {
active_birth_time: null,
birth_time: null,
birth_time_status: "reported" as const,
rectification_case_id: null,
}
: {};
const baseProfile = {
id: userId,
...(payload.name !== undefined ? { name: payload.name } : {}),