mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
fix: fix repository expiration
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user