From 12903d77f7cd9f6dec24b99e40ad320ecc4eb3a4 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 13 Jan 2024 22:01:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=93=8D=E4=BD=9C=E6=97=B6=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/restful/preview.js | 2 +- backend/src/restful/sync.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/package.json b/backend/package.json index 2a2651121..c14eb91a9 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.14.153", + "version": "2.14.154", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/restful/preview.js b/backend/src/restful/preview.js index 7c21bb3a2..c9845a0c8 100644 --- a/backend/src/restful/preview.js +++ b/backend/src/restful/preview.js @@ -70,7 +70,7 @@ async function previewFile(req, res) { { $files: files, $content: filesContent }, file.process, ) - : filesContent; + : { $content: filesContent, $files: files }; // produce success(res, { diff --git a/backend/src/restful/sync.js b/backend/src/restful/sync.js index 069195c01..5e88c35ae 100644 --- a/backend/src/restful/sync.js +++ b/backend/src/restful/sync.js @@ -430,7 +430,8 @@ async function produceArtifact({ { $files: files, $content: filesContent }, file.process, ) - : filesContent; + : { $content: filesContent, $files: files }; + return processed?.$content ?? ''; } }