From bd510a9aa9723b08c6eb7fc3c4ba72fe1564b667 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 28 Aug 2023 18:45:45 +0800 Subject: [PATCH] fix: sync --- backend/package.json | 2 +- backend/src/restful/sync.js | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) 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,