Skip to content

Commit 3700995

Browse files
committed
fix: Correct updater config access and update metadata versions
1 parent f3726a9 commit 3700995

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0",
2+
"version": "1.0.1",
33
"title": "Example TPS Display Service",
44
"description": "An example service that displays the current TPS."
55
}

src/libs/Updater.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function updateScript(path: string, repo: string, configPath: string): bo
5555
},
5656
CONFIG_ID
5757
);
58-
const currentVersion = config.updater[scriptName].version;
58+
const currentVersion = config[scriptName].version;
5959
if (currentVersion === latestVersion) return;
6060

6161
const asset = latestRelease.assets.find((asset) => asset.name === scriptFile);
@@ -75,7 +75,7 @@ export function updateScript(path: string, repo: string, configPath: string): bo
7575

7676
ChatHelper.success(`[Updater] Updated ${scriptName} from ${currentVersion || 'unknown'} to ${latestVersion}`);
7777

78-
config.updater[scriptName].version = latestVersion;
78+
config[scriptName].version = latestVersion;
7979
Config.writeConfig(configPath, config, CONFIG_ID);
8080

8181
return true;

src/skyblock/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.0.0",
2+
"version": "1.0.1",
33
"title": "Skyblock",
44
"description": "Macros for hub.mc-complex.com"
55
}

0 commit comments

Comments
 (0)