mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-30 14:09:33 +02:00
fix: fix repository expiration
This commit is contained in:
1 parent
0dab69bb52
commit
8dc84cbc19
1 file changed
+3
-3
+3
-3
@@ -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