mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-09-13 06:08:58 +02:00
fix: expire conference repositories before completing expiration
This commit is contained in:
@@ -56,7 +56,7 @@ router.get("/", async (req: express.Request, res: express.Response) => {
|
||||
).map(async (data) => {
|
||||
const conf = new Conference(data);
|
||||
if (data.endDate < new Date() && data.status == "ready") {
|
||||
await conf.updateStatus("expired");
|
||||
await conf.expire();
|
||||
}
|
||||
return conf;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user