19 lines
511 B
TypeScript
19 lines
511 B
TypeScript
import { TFunction } from "i18next";
|
|
import { Stat } from "~/application/dtos/stats/Stat";
|
|
import { TenantSimple } from "../db/tenants.db.server";
|
|
|
|
export async function getAppDashboardStats({
|
|
tenant,
|
|
}: {
|
|
t: TFunction;
|
|
tenant: TenantSimple | null;
|
|
gte: Date | undefined;
|
|
}): Promise<Stat[]> {
|
|
// Entity/row-based dashboard stats were produced by the generic entity-builder,
|
|
// which has been removed. There are no entity stats to compute anymore.
|
|
if (!tenant) {
|
|
return [];
|
|
}
|
|
return [];
|
|
}
|