diff --git a/src/stores/branch-contact/index.ts b/src/stores/branch-contact/index.ts index 83877278..1fe82acc 100644 --- a/src/stores/branch-contact/index.ts +++ b/src/stores/branch-contact/index.ts @@ -50,13 +50,14 @@ const useBranchContactStore = defineStore('api-branch-contact', () => { async function create( branchId: string, data: BranchContactCreate, + qrCodeImage: File, flow?: { sessionId: string; refTransactionId: string; transactionId: string; }, ) { - const { qrCodeImage, ...payload } = data; + const { ...payload } = data; const res = await api.post< BranchContact & { qrCodeImageUploadUrl: string } @@ -84,13 +85,14 @@ const useBranchContactStore = defineStore('api-branch-contact', () => { branchId: string, contactId: string, data: Partial, + qrCodeImage?: File, flow?: { sessionId: string; refTransactionId: string; transactionId: string; }, ) { - const { qrCodeImage, ...payload } = data; + const { ...payload } = data; const res = await api.put( `/branch/${branchId}/contact/${contactId}`, diff --git a/src/stores/branch-contact/types.ts b/src/stores/branch-contact/types.ts index 529d8639..d3ec1e41 100644 --- a/src/stores/branch-contact/types.ts +++ b/src/stores/branch-contact/types.ts @@ -13,5 +13,4 @@ export type BranchContact = { export type BranchContactCreate = { lineId: string; telephoneNo: string; - qrCodeImage: File; };