fix: only log payload keys for edit profile payload
This commit is contained in:
@@ -11,6 +11,7 @@ import { editProfileSchema } from "@/components/Forms/Edit/Profile/schema"
|
|||||||
import { countriesMap } from "@/components/TempDesignSystem/Form/Country/countries"
|
import { countriesMap } from "@/components/TempDesignSystem/Form/Country/countries"
|
||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { phoneValidator } from "@/utils/phoneValidator"
|
import { phoneValidator } from "@/utils/phoneValidator"
|
||||||
|
import { getMembership } from "@/utils/user"
|
||||||
|
|
||||||
import { Status } from "@/types/components/myPages/myProfile/edit"
|
import { Status } from "@/types/components/myPages/myProfile/edit"
|
||||||
|
|
||||||
@@ -132,7 +133,10 @@ export const editProfile = protectedServerActionProcedure
|
|||||||
status: Status.success,
|
status: Status.success,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(`[edit profile] body: ${JSON.stringify(body)}`)
|
const membership = getMembership(profile.memberships)
|
||||||
|
console.log(
|
||||||
|
`[edit profile: ${membership?.membershipNumber}] body keys: ${JSON.stringify(Object.keys(body))}`
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const apiResponse = await api.patch(api.endpoints.v1.profile, {
|
const apiResponse = await api.patch(api.endpoints.v1.profile, {
|
||||||
|
|||||||
Reference in New Issue
Block a user