This commit is contained in:
lingdocs 2021-08-22 13:21:30 +04:00
parent 7ad3bff073
commit 989ffe5a80
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,9 @@ async function accountApiFetch(url: string, method: "GET" | "POST" | "PUT" | "DE
body: JSON.stringify(body),
} : {},
});
return await response.json() as AT.APIResponse;
const raw = await response.text();
console.log("api response:", raw);
return JSON.parse(raw) as AT.APIResponse;
}
export async function publishDictionary(): Promise<FT.PublishDictionaryResponse> {