mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-16 23:03:34 +02:00
fix: chatch errors in the scheduler
This commit is contained in:
+10
-2
@@ -11,7 +11,11 @@ export function conferenceStatusCheck() {
|
|||||||
async (data) => {
|
async (data) => {
|
||||||
const conference = new Conference(data);
|
const conference = new Conference(data);
|
||||||
if (conference.isExpired() && conference.status == "ready") {
|
if (conference.isExpired() && conference.status == "ready") {
|
||||||
await conference.expire();
|
try {
|
||||||
|
await conference.expire();
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -25,7 +29,11 @@ export function repositoryStatusCheck() {
|
|||||||
await AnonymizedRepositoryModel.find({ status: { $eq: "ready" } })
|
await AnonymizedRepositoryModel.find({ status: { $eq: "ready" } })
|
||||||
).forEach((data) => {
|
).forEach((data) => {
|
||||||
const repo = new Repository(data);
|
const repo = new Repository(data);
|
||||||
repo.check();
|
try {
|
||||||
|
repo.check();
|
||||||
|
} catch (error) {
|
||||||
|
console.log(`Repository ${repo.repoId} is expired`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user