From 1fe920da79e256eeb743da66923395af03f0dfe0 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Wed, 8 Sep 2021 15:57:20 +0200 Subject: [PATCH] fix: fix repository quota --- src/routes/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/user.ts b/src/routes/user.ts index da6771b..41a727b 100644 --- a/src/routes/user.ts +++ b/src/routes/user.ts @@ -45,7 +45,7 @@ router.get("/quota", async (req: express.Request, res: express.Response) => { total: 0, }, repository: { - used: repositories.length, + used: repositories.filter((f) => f.status == "ready").length, total: 20, }, });