mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-05-17 00:16:32 +03:00
@@ -279,7 +279,7 @@ class DomainExpiry extends BeanModel {
|
||||
let bean = await DomainExpiry.findByDomainNameOrCreate(domainName);
|
||||
let expiryDate;
|
||||
|
||||
if (bean?.lastCheck && dayjs.utc(bean.lastCheck).diff(dayjs.utc(), "day") < 1) {
|
||||
if (bean?.lastCheck && dayjs.utc().diff(dayjs.utc(bean.lastCheck), "day") < 1) {
|
||||
log.debug("domain_expiry", `Domain expiry already checked recently for ${bean.domain}, won't re-check.`);
|
||||
return bean.expiry;
|
||||
} else if (bean) {
|
||||
|
||||
Reference in New Issue
Block a user