This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
scoresaber-reloadedv3/projects/backend/src/service/app.service.ts

16 lines
369 B
TypeScript
Raw Normal View History

2024-10-12 04:12:35 +01:00
import { PlayerModel } from "../model/player";
import { AppStatistics } from "@ssr/common/types/backend/app-statistics";
export class AppService {
/**
* Gets the app statistics.
*/
public static async getAppStatistics(): Promise<AppStatistics> {
const trackedPlayers = await PlayerModel.countDocuments();
return {
trackedPlayers,
};
}
}