From 50c522f1ff5916218c7f50503d7887a646db20fc Mon Sep 17 00:00:00 2001 From: Shaan Date: Thu, 26 Mar 2026 22:48:12 +0600 Subject: [PATCH] fix: Domain expiry doesn't seem to update #7189 (#7198) --- server/model/domain_expiry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/model/domain_expiry.js b/server/model/domain_expiry.js index 3e11599a2..6e4fcf56c 100644 --- a/server/model/domain_expiry.js +++ b/server/model/domain_expiry.js @@ -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) {