From 56c7b6417ab73b5a561a23d285259e8a3fae8bfa Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:48:47 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B9=81=E0=B8=81=E0=B9=89=20type=20img?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/branch-contact/index.ts | 6 ++++-- src/stores/branch-contact/types.ts | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) 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; };