fix: fix repository expiration

This commit is contained in:
tdurieux
2021-08-20 15:55:04 +02:00
parent 0dab69bb52
commit 8dc84cbc19

View File

@@ -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") {