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(),