diff --git a/backend/package.json b/backend/package.json index 678c969..9a05ad1 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.36", + "version": "2.14.37", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/restful/sync.js b/backend/src/restful/sync.js index 54b5140..67a85ee 100644 --- a/backend/src/restful/sync.js +++ b/backend/src/restful/sync.js @@ -255,20 +255,20 @@ async function syncArtifact(req, res) { return; } - const output = await produceArtifact({ - type: artifact.type, - name: artifact.source, - platform: artifact.platform, - }); - - $.info( - `正在上传配置:${artifact.name}\n>>>${JSON.stringify( - artifact, - null, - 2, - )}`, - ); try { + const output = await produceArtifact({ + type: artifact.type, + name: artifact.source, + platform: artifact.platform, + }); + + $.info( + `正在上传配置:${artifact.name}\n>>>${JSON.stringify( + artifact, + null, + 2, + )}`, + ); const resp = await syncToGist({ [encodeURIComponent(artifact.name)]: { content: output,