From cc1b9a2342ace157e001626f8d84974ba2f7ddca Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 16:26:07 -0500 Subject: [PATCH] fix routing issue --- src/api/routes/Root.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/Root.ts b/src/api/routes/Root.ts index 1401401..4832b99 100644 --- a/src/api/routes/Root.ts +++ b/src/api/routes/Root.ts @@ -13,7 +13,7 @@ export default class Root extends Route { const date = new Date(); date.setSeconds(-process.uptime()); const accounts = await this.server.client.db.Account.find(); - const administrators = accounts.filter((account) => account.root === true); + const administrators = accounts.filter((account) => account.root === true).length; const response = { nodeVersion: process.version, uptime: process.uptime(),