mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-13 05:35:15 +00:00
Fix patch when gist gets deleted #641
This commit is contained in:
@@ -18,12 +18,12 @@ export async function create(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,
|
||||
content,
|
||||
});
|
||||
|
||||
return deleted;
|
||||
return data.deleted;
|
||||
}
|
||||
|
||||
export async function del(gistId) {
|
||||
|
Reference in New Issue
Block a user