This commit is contained in:
Louis Lam 2024-10-11 17:10:29 +08:00
parent 7562212483
commit 776f4f2d5f

View file

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