mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
feat: check status of repository
This commit is contained in:
@@ -93,7 +93,10 @@ export default class Repository {
|
||||
* Check the status of the repository
|
||||
*/
|
||||
check() {
|
||||
if (this._model.options.expirationMode !== "never") {
|
||||
if (
|
||||
this._model.options.expirationMode !== "never" &&
|
||||
this._model.status == "ready"
|
||||
) {
|
||||
if (this._model.options.expirationDate <= new Date()) {
|
||||
this.expire();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user