2.0-last-part
Louis Lam 1 month ago
parent 7562212483
commit 776f4f2d5f

@ -199,10 +199,6 @@ class UptimeCalculator {
* @throws {Error} Invalid status * @throws {Error} Invalid status
*/ */
async update(status, ping = 0, date) { async update(status, ping = 0, date) {
if (!this.monitorID) {
throw new Error("Monitor ID is required");
}
if (!date) { if (!date) {
date = this.getCurrentDate(); date = this.getCurrentDate();
} }

Loading…
Cancel
Save