diff options
Diffstat (limited to 'src/database.ts')
-rw-r--r-- | src/database.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database.ts b/src/database.ts index 8a384b1..9ef812d 100644 --- a/src/database.ts +++ b/src/database.ts @@ -803,6 +803,10 @@ export async function updateAccount(discordId: string, schema: AccountSchema) { }, { $set: schema }, { upsert: true }) } +export async function fetchServerStatus() { + return await database.admin().serverStatus() +} + // make sure it's not in a test console.log('global.isTest', globalThis.isTest) if (!globalThis.isTest) { |