Fix patch when gist gets deleted #641 (#643)

This commit is contained in:
1ilit
2025-10-11 00:26:04 +04:00
committed by GitHub
parent 1c8e074544
commit 75e3756f1e

View File

@@ -18,12 +18,12 @@ export async function create(filename, content) {
} }
export async function patch(gistId, filename, content) { export async function patch(gistId, filename, content) {
const { deleted } = await axios.patch(`${baseUrl}/gists/${gistId}`, { const { data } = await axios.patch(`${baseUrl}/gists/${gistId}`, {
filename, filename,
content, content,
}); });
return deleted; return data.deleted;
} }
export async function del(gistId) { export async function del(gistId) {