PUT method для обновления файлов верификации
This commit is contained in:
parent
19a518d651
commit
bf80655118
@ -73,8 +73,8 @@ export const updateDocuments = async (
|
|||||||
): Promise<[Verification | "OK" | null, string?]> => {
|
): Promise<[Verification | "OK" | null, string?]> => {
|
||||||
try {
|
try {
|
||||||
const updateDocumentsResponse = await makeRequest<FormData, Verification>({
|
const updateDocumentsResponse = await makeRequest<FormData, Verification>({
|
||||||
method: "PATCH",
|
method: "PUT",
|
||||||
url: `${API_URL}/file`,
|
url: `${API_URL}`,
|
||||||
body: jsonToFormdata(
|
body: jsonToFormdata(
|
||||||
documents.inn ? { ...documents, egrule: documents.inn } : documents
|
documents.inn ? { ...documents, egrule: documents.inn } : documents
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user