fix: sync

This commit is contained in:
xream 2023-08-28 18:45:45 +08:00
parent f02af9d643
commit bd510a9aa9
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 14 additions and 14 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "sub-store", "name": "sub-store",
"version": "2.14.36", "version": "2.14.37",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js", "main": "src/main.js",
"scripts": { "scripts": {

View File

@ -255,6 +255,7 @@ async function syncArtifact(req, res) {
return; return;
} }
try {
const output = await produceArtifact({ const output = await produceArtifact({
type: artifact.type, type: artifact.type,
name: artifact.source, name: artifact.source,
@ -268,7 +269,6 @@ async function syncArtifact(req, res) {
2, 2,
)}`, )}`,
); );
try {
const resp = await syncToGist({ const resp = await syncToGist({
[encodeURIComponent(artifact.name)]: { [encodeURIComponent(artifact.name)]: {
content: output, content: output,