refactor: handle zipcode
This commit is contained in:
parent
de97a348e7
commit
f8717b3d01
1 changed files with 3 additions and 1 deletions
|
|
@ -372,7 +372,9 @@ const useUserStore = defineStore('api-user', () => {
|
||||||
transactionId?: string;
|
transactionId?: string;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
const res = await api.put<User>(`/user/${id}`, data, {
|
const { zipCode, ...paylond } = data;
|
||||||
|
|
||||||
|
const res = await api.put<User>(`/user/${id}`, paylond, {
|
||||||
headers: {
|
headers: {
|
||||||
'X-Session-Id': flow?.sessionId,
|
'X-Session-Id': flow?.sessionId,
|
||||||
'X-Rtid': flow?.refTransactionId || flowStore.rtid,
|
'X-Rtid': flow?.refTransactionId || flowStore.rtid,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue