mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-09 17:13:56 +02:00
fix: fix repository expiration
This commit is contained in:
+3
-3
@@ -91,9 +91,9 @@ export default class Repository {
|
|||||||
* Check the status of the repository
|
* Check the status of the repository
|
||||||
*/
|
*/
|
||||||
check() {
|
check() {
|
||||||
if (this._model.options.expirationMode != "never") {
|
if (this._model.options.expirationMode !== "never") {
|
||||||
if (this._model.options.expirationDate > new Date()) {
|
if (this._model.options.expirationDate <= new Date()) {
|
||||||
this.updateStatus("expired");
|
this.expire();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this._model.status == "expired") {
|
if (this._model.status == "expired") {
|
||||||
|
|||||||
Reference in New Issue
Block a user