fix routing issue

merge-requests/1/merge
Matthew 2019-11-17 16:26:07 -05:00
parent 09eb30d813
commit cc1b9a2342
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

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