mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-14 04:36:11 +08:00
fixed deleted gist
This commit is contained in:
parent
6eea8bb2d0
commit
f7c08e3a56
@ -131,7 +131,12 @@ async function deleteArtifact(req, res) {
|
|||||||
files[encodeURIComponent(artifact.name)] = {
|
files[encodeURIComponent(artifact.name)] = {
|
||||||
content: '',
|
content: '',
|
||||||
};
|
};
|
||||||
await syncToGist(files);
|
// 当别的Sub 删了同步订阅 或 gist里面删了 当前设备没有删除 时 无法删除的bug
|
||||||
|
try {
|
||||||
|
await syncToGist(files);
|
||||||
|
} catch (i) {
|
||||||
|
$.error(`Function syncToGist: ${name} : ${i}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// delete local cache
|
// delete local cache
|
||||||
deleteByName(allArtifacts, name);
|
deleteByName(allArtifacts, name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user