From 8dc84cbc19b25bee5602c9d03e556e3a0bf03540 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Fri, 20 Aug 2021 15:55:04 +0200 Subject: [PATCH] fix: fix repository expiration --- src/Repository.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Repository.ts b/src/Repository.ts index fbb7fef..bfeaa15 100644 --- a/src/Repository.ts +++ b/src/Repository.ts @@ -91,9 +91,9 @@ export default class Repository { * Check the status of the repository */ check() { - if (this._model.options.expirationMode != "never") { - if (this._model.options.expirationDate > new Date()) { - this.updateStatus("expired"); + if (this._model.options.expirationMode !== "never") { + if (this._model.options.expirationDate <= new Date()) { + this.expire(); } } if (this._model.status == "expired") {