aboutsummaryrefslogtreecommitdiff
path: root/src/database.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2021-12-30 22:33:55 -0600
committermat <github@matdoes.dev>2021-12-30 22:33:55 -0600
commitac8a1187678b8580c2ff26181344d6647fb46303 (patch)
treec7b6cbdaba6708cf3f73f54871e6a938659562a1 /src/database.ts
parent0493cb2600f16ae38ab0d0f496358dcd6030ebe0 (diff)
downloadskyblock-api-ac8a1187678b8580c2ff26181344d6647fb46303.tar.gz
skyblock-api-ac8a1187678b8580c2ff26181344d6647fb46303.tar.bz2
skyblock-api-ac8a1187678b8580c2ff26181344d6647fb46303.zip
change some metrics
Diffstat (limited to 'src/database.ts')
-rw-r--r--src/database.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database.ts b/src/database.ts
index 9ef812d..571ec5e 100644
--- a/src/database.ts
+++ b/src/database.ts
@@ -807,6 +807,10 @@ export async function fetchServerStatus() {
return await database.admin().serverStatus()
}
+export async function fetchServerStats() {
+ return await database.stats()
+}
+
// make sure it's not in a test
console.log('global.isTest', globalThis.isTest)
if (!globalThis.isTest) {