Skip to content

Commit

Permalink
Update updater.js
Browse files Browse the repository at this point in the history
  • Loading branch information
StavZ committed Oct 21, 2021
1 parent f4441e1 commit 89ccd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Private/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Updater {
const currentVersion = require('../../package.json').version;
const request = await fetch('https://registry.npmjs.org/hypixel-api-reborn');
if (!request.ok) return console.log(Errors.UPDATER_REQUEST_NOT_OK);
const metadata = request.json();
const metadata = await request.json();
const latestVersion = metadata['dist-tags'].latest;
const compare = this.compare(currentVersion, latestVersion);
if (compare === -1) {
Expand Down

0 comments on commit 89ccd30

Please sign in to comment.