mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-07 14:03:17 +08:00
fix: Sync time is updated even if upload failed
This commit is contained in:
@@ -62,8 +62,10 @@ async function updateArtifactStore() {
|
||||
|
||||
try {
|
||||
const gistId = await manager.locate();
|
||||
settings.artifactStore = `https://gist.github.com/${githubUser}/${gistId}`;
|
||||
$.write(settings, SETTINGS_KEY);
|
||||
if (gistId !== -1) {
|
||||
settings.artifactStore = `https://gist.github.com/${githubUser}/${gistId}`;
|
||||
$.write(settings, SETTINGS_KEY);
|
||||
}
|
||||
} catch (err) {
|
||||
$.error('Failed to fetch artifact store for User: ' + githubUser);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user