Skip to content

Commit

Permalink
fix: 修复无脚本操作时 文件数据结构错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 13, 2024
1 parent 0c6ec7f commit 12903d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/restful/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function previewFile(req, res) {
{ $files: files, $content: filesContent },
file.process,
)
: filesContent;
: { $content: filesContent, $files: files };

// produce
success(res, {
Expand Down
3 changes: 2 additions & 1 deletion backend/src/restful/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ async function produceArtifact({
{ $files: files, $content: filesContent },
file.process,
)
: filesContent;
: { $content: filesContent, $files: files };

return processed?.$content ?? '';
}
}
Expand Down

0 comments on commit 12903d7

Please sign in to comment.