diff --git a/packages/doceditor/src/utils/actions.ts b/packages/doceditor/src/utils/actions.ts index 5d988668b7..7537bbe23d 100644 --- a/packages/doceditor/src/utils/actions.ts +++ b/packages/doceditor/src/utils/actions.ts @@ -393,28 +393,28 @@ export const checkIsAuthenticated = async () => { return isAuth.response as boolean; }; -export async function checkFillFromDraft( - templateFileId: number, - share?: string, -) { - const [checkFillFormDraft] = createRequest( - [`/files/masterform/${templateFileId}/checkfillformdraft`], - [ - share ? ["Request-Token", share] : ["", ""], - ["Content-Type", "application/json;charset=utf-8"], - ], - "POST", - JSON.stringify({ fileId: templateFileId }), - ); +// export async function checkFillFromDraft( +// templateFileId: number, +// share?: string, +// ) { +// const [checkFillFormDraft] = createRequest( +// [`/files/masterform/${templateFileId}/checkfillformdraft`], +// [ +// share ? ["Request-Token", share] : ["", ""], +// ["Content-Type", "application/json;charset=utf-8"], +// ], +// "POST", +// JSON.stringify({ fileId: templateFileId }), +// ); - const response = await fetch(checkFillFormDraft); +// const response = await fetch(checkFillFormDraft); - if (!response.ok) return null; +// if (!response.ok) return null; - const { response: formUrl } = await response.json(); +// const { response: formUrl } = await response.json(); - return formUrl as string; -} +// return formUrl as string; +// } export async function openEdit( fileId: number | string, diff --git a/packages/shared/api/files/index.ts b/packages/shared/api/files/index.ts index 15008c9041..3bbcd93102 100644 --- a/packages/shared/api/files/index.ts +++ b/packages/shared/api/files/index.ts @@ -1180,15 +1180,15 @@ export async function getPresignedUri(fileId: number | string) { return res; } -export async function checkFillFormDraft(fileId: number | string) { - const res = (await request({ - method: "post", - url: `files/masterform/${fileId}/checkfillformdraft`, - data: { fileId }, - })) as string; +// export async function checkFillFormDraft(fileId: number | string) { +// const res = (await request({ +// method: "post", +// url: `files/masterform/${fileId}/checkfillformdraft`, +// data: { fileId }, +// })) as string; - return res; -} +// return res; +// } export async function fileCopyAs( fileId: number,