diff --git a/src/common/statusUtils.ts b/src/common/statusUtils.ts index 09f949a..021662a 100644 --- a/src/common/statusUtils.ts +++ b/src/common/statusUtils.ts @@ -26,7 +26,7 @@ export async function getPlayerStatistics(client: ExtendedClient): Promise { if (!extended) { - const uptimeString: string = await getUptimeFormatted({ executionId }); + const uptimeString: string = getUptimeFormatted({ executionId }); const usedMemoryInMB: string = Math.ceil((await osu.mem.info()).usedMemMb).toLocaleString('en-US'); const cpuUsage: number = await osu.cpu.usage(); @@ -35,7 +35,7 @@ export async function getSystemStatus(executionId: string, extended: boolean): P ); } - const uptimeString: string = await getUptimeFormatted({ executionId }); + const uptimeString: string = getUptimeFormatted({ executionId }); const totalMemoryInMb: string = Math.ceil((await osu.mem.info()).totalMemMb).toLocaleString('en-US'); const cpuCores: number = osu.cpu.count(); const platform: string = osu.os.platform(); diff --git a/src/utils/factory/createClient.ts b/src/utils/factory/createClient.ts index ec12f27..3e3185f 100644 --- a/src/utils/factory/createClient.ts +++ b/src/utils/factory/createClient.ts @@ -2,7 +2,7 @@ import Discord, { Client } from 'discord.js'; import { Logger } from 'pino'; import loggerModule from '../../services/logger'; -export const createClient = async ({ executionId }: { executionId: string }) => { +export const createClient = async ({ executionId }: { executionId: string }): Promise => { const logger: Logger = loggerModule.child({ module: 'utilFactory', name: 'createClient', diff --git a/src/utils/factory/createPlayer.ts b/src/utils/factory/createPlayer.ts index 96dc5bc..bd61ee7 100644 --- a/src/utils/factory/createPlayer.ts +++ b/src/utils/factory/createPlayer.ts @@ -4,7 +4,7 @@ import { Logger } from 'pino'; import loggerModule from '../../services/logger'; import { CreatePlayerParams } from '../../types/playerTypes'; -export const createPlayer = async ({ client, executionId }: CreatePlayerParams) => { +export const createPlayer = async ({ client, executionId }: CreatePlayerParams): Promise => { const logger: Logger = loggerModule.child({ module: 'utilFactory', name: 'createPlayer', diff --git a/src/utils/system/getUptimeFormatted.ts b/src/utils/system/getUptimeFormatted.ts index fd02adc..43a14d4 100644 --- a/src/utils/system/getUptimeFormatted.ts +++ b/src/utils/system/getUptimeFormatted.ts @@ -2,7 +2,7 @@ import { Logger } from 'pino'; import loggerModule from '../../services/logger'; import { GetUptimeFormattedParams } from '../../types/utilTypes'; -export const getUptimeFormatted = async ({ executionId }: GetUptimeFormattedParams) => { +export const getUptimeFormatted = ({ executionId }: GetUptimeFormattedParams): string => { const logger: Logger = loggerModule.child({ module: 'utilSystem', name: 'getUptimeFormatted',