diff --git a/package.json b/package.json index 1e7e38c..5cf1414 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uptimekuma-api", - "version": "1.0.1", + "version": "1.0.2", "description": "", "main": "src/index.js", "types": "src/index.d.ts", diff --git a/src/index.js b/src/index.js index 5947c67..afe65c2 100644 --- a/src/index.js +++ b/src/index.js @@ -23,9 +23,9 @@ module.exports = class UptimeKumaApi extends EventEmitter { if (this._pushTimer) this._pushTimer.cancel(); this._pushTimer = setInterval(() => { - this.push(this.baseURL+"api/push/"+code); + this.push(this._baseURL+"api/push/"+code); }, interval * 1000); - this.push(this.baseURL+"api/push/"+code); + this.push(this._baseURL+"api/push/"+code); } cancelPushing() {