Skip to content

Commit 431b1a3

Browse files
authored
Merge pull request #226 from Keywos/master
fixed deleted gist
2 parents 36d4600 + ff71f12 commit 431b1a3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.14.2",
3+
"version": "2.14.3",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/restful/artifacts.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,12 @@ async function deleteArtifact(req, res) {
131131
files[encodeURIComponent(artifact.name)] = {
132132
content: '',
133133
};
134-
await syncToGist(files);
134+
// 当别的Sub 删了同步订阅 或 gist里面删了 当前设备没有删除 时 无法删除的bug
135+
try {
136+
await syncToGist(files);
137+
} catch (i) {
138+
$.error(`Function syncToGist: ${name} : ${i}`);
139+
}
135140
}
136141
// delete local cache
137142
deleteByName(allArtifacts, name);

0 commit comments

Comments
 (0)