chore: remove zipcode from payload
This commit is contained in:
parent
fbe00192c4
commit
58982fad1c
2 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ const useBranchStore = defineStore('api-branch', () => {
|
|||
}
|
||||
|
||||
async function create(branch: BranchCreate, bank?: BankBook[]) {
|
||||
const { qrCodeImage, imageUrl, ...payload } = branch;
|
||||
const { qrCodeImage, imageUrl, zipCode, ...payload } = branch;
|
||||
const bankPayload = bank?.map(({ bankUrl, bankQr, ...rest }) => ({
|
||||
...rest,
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -274,7 +274,7 @@ const useUserStore = defineStore('api-user', () => {
|
|||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { profileImage, ...payload } = data;
|
||||
const { profileImage, zipCode, ...payload } = data;
|
||||
const res = await api.post<User & { profileImageUploadUrl: string }>(
|
||||
'/user',
|
||||
payload,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue